Reading ASP Session Variables in CF
We have an old ASP application that we would like to
integrate some CF Reporting reports into. There are a couple of
seession variables stored in ASP that I would like to get. Is there
a way/workaround to reading these variables into CF?
Thanks,
James
> I thought that was going to be the case... I was just
worried about user's saving shortcuts to URL variabled pages...
This will get me started... Thanks.
What about writing a gateway web service for passing session
info between
application server platforms (I've not tried this sort of
thing between CF
and ASP, but have done so CF->CF and it worked OK)? This
would be a bit
more foolproof than using form submissions or URLs.
Adam
Similar Messages
-
I have set a session variable "var1" in the pagedef using ADFUtil.setEL("#(sessionScope.var1)",myValue);
How do I read this session variable, "var1" in select statement in a View Object please?
ThanksDo NOT try to access the variables stored in a scope in a view controller project directly in the Model layer. It breaks the MVC paradigm.
For your use-case,
1) Create a View Object with a View Criteria that has a single bind variable.
2) Have a method in AMImpl that takes a single parameter and applies the View criteria for the View Object Instance in 1) by setting the value for the bind variable with the input parameter and execute the View Object and expose this method through client interface.
3) Use this method in ViewController project and Invoke the method.
Thanks,
Navaneeth -
hi!
there's an asp-login page that holds a session with login information.
this asp page then calls my jsp page.
the problem is that i wanna access this login information stored in the asp-session from my jsp.
how can i archieve this?
is there a way to access to the asp-session or the cookie?
thx in advanceeasiest way is to forward response from ASP (these ASP has to be invoked after the login form is submitted - post method) to JSP and get the required parameter
there are two possibilities
1) directly u get values of by request.getParameter("username")
0r
2) pass parameter and values from ASP page as myjsppage?username=test
hope these solve your probs...my prob is dukes...
bye for now
Pranav -
Reading a session variable from a dynamic action
I have a select list on a page and a button next to the select list. The button calls a dynamic action which opens a page and sends the value in the select list. The page is not submitted. The DA has a step with a dummy PL/SQL block that submits the select list item. Then the page is called with the select list in the URL.
The value is not being sent. If I go into edit mode then run the page again then the correct value is sent.
When I look at session in Administration the select list is in session and set properly but is not sent unless the page is submitted.
Why if it is in session is it not being passed correctly? What does submitting the page do other than update session?Hi,
could you share the exception trace ?
Frank -
Unable to fetch session variables in my application page code behind
hi,
my env: 1 WFE server which hosts the central admin and my web appln, 1 sql server box
i am having a custom web part[ listviewbyquery web part] which populates the site collection/ sub site's document library contents . also it reads some query string values and pushes these values into session variables.
and i am having another application page in this application which reads this session variables and perform some operation in a custom sql db. But i am unable to read these session variables on page load of this application page.
am unable to debug also. so, would like to know is there any way i can see, what values are getting passed to this page and verify the session variables are accessed correctly.
or
is this by design, that its not possible to read session variables in the application page ?
if i am not having a visual studio env. to debug, how to test these session variable existence / to find the root cause of this issue.
note: already configured session state in IIS , http modules section. am using Page.Session["myvariable1"].tostring() to fetch the session variables.
help is appreciated!i have found out myself. i have put page.response.write(mysessionvariables) in the code and deployed and tested in my env. and i was able to find out the reason and i have fixed it with proper validation check.
-
Session Variables Disappearing
This issue of disappearing session variables keeps coming up
again and again. I am reading about session variables work from
Adobe site and it say this
Click
Here
Session variables have the following
traits:
In order for session variables to
work, the visitor's browser must be set to accept cookies.
The pages for
the site all must be located within a single directory on the web
server.
Information stored in session
variables is site visitor specific. Different site visitors cannot
access each other's session variable information.
My question is this (about the highlighted). since my
application.cfm is located in the root directory and the session
variables are set from different directories under the root, will
this be the problem? Users login into the site from the members
directory and the sessions for that user are set after successful
login. when the user tries any other link from a different
directory the session disappears. Is this a recurring problem with
CFMX (6.1)or am I the only one experiencing this. I wish someone
from ADOBE should also respond to this.The session variables are good for the entire application.
And the application is defined as any file at the same level or
beneath the application.cfm. If you are trying to access files that
do not fall under or at the same level as application.cfm then your
session variables would be invalid. -
Reading Session Variables in Abstract Portal Component/ JSP Dynpage or Java
Hi All,
I have a web dynpro for Java component which passes parameters in a session and also navigates to a Java application.
Now when I try to read the session parameters in the Java application (JSPDynpage or Abstract Portal Component) I cannot retrieve the values.
Can someone throw light on how I can achieve this within a Java application.
Code is as enclosed below -
WD for Java Code
public void onActionClicked(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionClicked(ServerEvent)
IClientSession session = Utils.getCurrentClientSession();
IScope scope = session.getScope();
scope.put("TestSession", wdContext.currentContextElement().getTxtValue());
WDPortalNavigation.navigateAbsolute(
"ROLES:portal_content/com.be.pct.cr.Test/DynProToNet",
WDPortalNavigationMode.SHOW_INPLACE,
(String)null,
(String)null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String)null,
(String)null,
(String)null);
//@@end
Code within the Abstract Portal Component doContent method is -
IPortalComponentSession ses;
ses = request.getComponentSession();
String TestSession = new String();
String sTest = new String();
String sTesting = new String();
if(ses.getValue("TestSession")!= null){
TestSession = ses.getValue("TestSession").toString();
if(request.getParameter("TestSession")!= null){
sTest = request.getParameter("TestSession");
if( request.getValue("TestSession")!= null)
sTesting = request.getValue("TestSession").toString();
response.write("Display"TestSessionsTest+sTesting);
Any help is highly appreciated.
Thanks in advance,
DivyaHi,
Why not use eventing between webdynpro and portal applications? That would be more easy. Check these documents.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60d7d690-0201-0010-e581-9c4fc69cec0e
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d48eaa90-0201-0010-58a8-887fc8632c3c
Regards,
Harini S -
Session variable causing ADODB.Field error '800a0bcd'
i have a page that before the session variable was added,
would display the
text i required if the recordset was empty.
Now i have a session variable on the same page and if the
recordset is
empty, instead of showing the text i need displayed, i get
the following
error:
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been
deleted. Requested
operation requires a current record.
/Help_Desk/verified.asp, line 31
If i remove the session variable code from the page, it works
fine.....why
the conflicts?
<%Session("last")
=(rsVerify.Fields.Item("c_last_name").Value)%>
<%Session("first")
=(rsVerify.Fields.Item("c_first_name").Value)%>
<html>
What im doing is verifying if a user exists in the database.
If they do
there name is stored in a session and used later on the
following pages. If
they do not exist, they are suppose to receive a message
indicating to call
our support center to update there name...
I dont understand why the addition of the above two lines
cause this errorHere is all the code on the page... please let me know if
there is something
incorrect.....
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../Connections/USD.asp" -->
<%
Dim rsVerify__varLname
rsVerify__varLname = "%"
If (Request.Querystring("last") <> "") Then
rsVerify__varLname = Request.Querystring("last")
End If
%>
<%
Dim rsVerify__varFname
rsVerify__varFname = "%"
If (Request.Querystring("first") <> "") Then
rsVerify__varFname = Request.Querystring("first")
End If
%>
<%
Dim rsVerify
Dim rsVerify_numRows
Set rsVerify = Server.CreateObject("ADODB.Recordset")
rsVerify.ActiveConnection = MM_USD_STRING
rsVerify.Source = "SELECT c_last_name, c_first_name,
c_middle_name,
c_email_addr FROM AHD.ctct WHERE c_last_name = '" +
Replace(rsVerify__varLname, "'", "''") + "' and c_first_name
= '" +
Replace(rsVerify__varFname, "'", "''") + "' and del = '0'"
rsVerify.CursorType = 0
rsVerify.CursorLocation = 2
rsVerify.LockType = 1
rsVerify.Open()
rsVerify_numRows = 0
%>
<%Session("last")
=(rsVerify.Fields.Item("c_last_name").Value)%>
<%Session("first")
=(rsVerify.Fields.Item("c_first_name").Value)%>
<html>
<head>
<title>Account Verification</title>
</head>
<body text="#000000" link="#0000FF" vlink="#0000FF"
alink="#0000FF"
leftmargin="0" topmargin="0">
<!--#include virtual="/inc/header.asp" -->
<br>
<br>
<% If Not rsVerify.EOF Or Not rsVerify.BOF Then %>
<table width="605" align="center">
<tr bgcolor="#9999FF">
<td><strong>USD Name:</strong></td>
<td><strong><%=(rsVerify.Fields.Item("c_last_name").Value)%>,
<%=(rsVerify.Fields.Item("c_first_name").Value)%></strong></td>
</tr>
<tr>
<td><strong>First
Name:</strong></td>
<td><strong><font
color="#FF0000"><%=(rsVerify.Fields.Item("c_first_name").Value)%></font></strong></td>
</tr>
<tr>
<td><strong>Last Name:</strong></td>
<td><strong><font
color="#FF0000"><%=(rsVerify.Fields.Item("c_last_name").Value)%></font></strong></td>
</tr>
<tr>
<td><strong>Email:</strong></td>
<td><strong><font
color="#FF0000"><%=(rsVerify.Fields.Item("c_email_addr").Value)%></font></strong></td>
</tr>
<tr>
<td><strong>Location:</strong></td>
<td><strong><font
color="#FF0000"><%=(rsVerify.Fields.Item("c_middle_name").Value)%></font></strong></td>
</tr>
<tr>
<td colspan="2"><div
align="center"><strong>If all 4 fields above
contain
your correct information please select from the links
below.<br>
If your are missing any information above please contact the
help
desk
before proceeding.</strong> </div></td>
</tr>
<tr>
<td colspan="2"><hr size="1"> <table
width="400" align="center">
<tr>
<td><div align="center"><strong><a
href="/Help_Desk/usd_stores1.asp">Open
Store / DC
Request</a></strong></div></td>
<td><div align="center"><strong><a
href="/Help_Desk/usd_corp1.asp">Open
Corporate
Request</a></strong></div></td>
</tr>
</table></td>
</tr>
</table>
<% End If ' end Not rsVerify.EOF Or NOT rsVerify.BOF %>
<br>
<div align="center">
<% If rsVerify.EOF And rsVerify.BOF Then %>
<table width="605">
<tr>
<td><div align="center"><font
color="#FF0000"><strong>If you are
receiving
this message, chances are you are not completely setup in
USD.<br>
Please contact the help desk to have your information
verified and
setup
if needed.</strong></font>
</div></td>
</tr>
</table>
<% End If ' end rsVerify.EOF And rsVerify.BOF %>
</div>
<div align="center"></div>
<!--#include virtual="/inc/footer.asp" -->
</body>
</html>
<%
rsVerify.Close()
Set rsVerify = Nothing
%>
"Daniel" <[email protected]> wrote in message
news:[email protected]...
>i have a page that before the session variable was added,
would display the
>text i required if the recordset was empty.
>
> Now i have a session variable on the same page and if
the recordset is
> empty, instead of showing the text i need displayed, i
get the following
> error:
>
> --------------------------
> ADODB.Field error '800a0bcd'
> Either BOF or EOF is True, or the current record has
been deleted.
> Requested operation requires a current record.
>
> /Help_Desk/verified.asp, line 31
> -----------------------------
>
> If i remove the session variable code from the page, it
works fine.....why
> the conflicts?
>
> <%Session("last")
=(rsVerify.Fields.Item("c_last_name").Value)%>
> <%Session("first")
=(rsVerify.Fields.Item("c_first_name").Value)%>
> <html>
>
> --------------
>
> What im doing is verifying if a user exists in the
database. If they do
> there name is stored in a session and used later on the
following pages.
> If they do not exist, they are suppose to receive a
message indicating to
> call our support center to update there name...
>
> I dont understand why the addition of the above two
lines cause this error
>
> -
Having an issue with passing the text of a link to a session variable.
I am having an issue with passing the text from a link to a session variable. I am adding this html as a literal for each item in the list that i have populated with a query.
List<Literal> lit = new List<Literal>();
for (int i = 0; i < posts.Count; i+=4)
Literal someLit = new Literal();
someLit.Text=
@"<div class='row'>" +
"<div class='col-md-12'>" +
"<div class='panel'>" +
" <div class='panel-body'>" +
" <!--/stories-->" +
" <div class='row'> " +
" <br>" +
"<div class='col-md-2 col-sm-3 text-center' id='javascript'> <h3>" +
" <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>" +
"</h3>" +
" </div>" +
" <div class='col-md-10 col-sm-9'>" +
"<h3><a href='Thread.aspx' runat='server' onserverclick='MyFuncion_Click'> " + posts[i] + " </a></h3>" +
" <div class='row'>" +
" <div class='col-xs-9'> " +
posts[i + 1] +
" </div>" +
"<div class='col-xs-3'></div>" +
posts[i + 2] +
" </div>" +
"<br><br>" +
" </div>" +
" </div>" +
" <!--/stories-->" +
" </div>" +
" </div>" +
" </div><!--/col-12-->" +
" </div>" +
"</div>";
lit.Add(someLit);
for(int i=0; i<lit.Count; i++)
this.Controls.Add(lit[i]);
I use one of the list positions as the text for a link in two different spots. For now, lets only talk about the line:
<a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>
Since I am generating these controls at pageLoad, I can't make them <asp:Linkbutton>s. And since they are anchor elements, I don't have access to an onCommand attribute or onservercommand attribute.
All I want to do is access the content from inside the specific link tags that I generate on link click and set it as a session variable. That's what I would like my UserProfile_Click function to do. I cant commandargs it in like i can with a linkbutton's
OnCommnad attribute, however.
My fear is that the onserverclick attribute resolves so something else on pageLoad normally and since I am generating it the way I am similar to the way a <asp:linkButton> resolves to a generated JavaScript.
Any help?@Brunellus
For questions related to ASP.NET use the ASP.NET forum http://forums.asp.net
You should get more, better and faster answers on the other forum. Thanks, ahead of time.
Best Regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Filtering a Recordset with session variable
Hi
I am trying to filter a recordset based on a session
variable. The session variable is passed from the login page via a
username which is their email address. This has been successful.
However when I want to filter the users table - tbl_users to
show their first name it doesn't work.
I followed the adobe help tutorial plus ahave tried other
combinations and I am now at a loss on where exactly I am going
wrong.
The recordset is rs_UserAccess
I have a session variable called - MM_Username
The table has 5 records of various users
The code that I have fiddling with is -
<%
Dim rs_UserAccess
Dim rs_UserAccess_numRows
Set rs_UserAccess = Server.CreateObject("ADODB.Recordset")
rs_UserAccess.ActiveConnection = MM_conn_sidecounter_STRING
rs_UserAccess.Source = "SELECT * FROM tbl_users WHERE
username = MM_Username"
rs_UserAccess.CursorType = 0
rs_UserAccess.CursorLocation = 2
rs_UserAccess.LockType = 1
rs_UserAccess.Open()
rs_UserAccess_numRows = 0
%>
Any help would be appreciated. I have outlined below the
different combinations I have tested.
Try No1
rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
= Session("MM_Username")”
Message:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/main.asp, line 182
Try No2
rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
= Session(‘MM_Username’)”
Message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Undefined function
'Session' in expression.
/main.asp, line 186
Try No3
rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
= Session(MM_Username)”
Message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Undefined function
'Session' in expression.
/main.asp, line 186
Try No4
rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
= Session Variable MM_Username"
Message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression 'username = Session Variable
MM_Username'.
/main.asp, line 186
Try No5
rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
= MM_Username"
Message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters.
Expected 1.
/main.asp, line 186
Thanks in advance
Cheers
DownsyTry this:
rs_UserAccess.Source = "SELECT * FROM tbl_users WHERE
username = " & Session("MM_Username")
Keep that on one line.
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"Downsy42" <[email protected]> wrote in
message news:[email protected]...
> Hi
> I am trying to filter a recordset based on a session
variable. The session
> variable is passed from the login page via a username
which is their email
> address. This has been successful.
> However when I want to filter the users table -
tbl_users to show their first
> name it doesn't work.
> I followed the adobe help tutorial plus ahave tried
other combinations and I
> am now at a loss on where exactly I am going wrong.
> The recordset is rs_UserAccess
> I have a session variable called - MM_Username
> The table has 5 records of various users
>
> The code that I have fiddling with is -
>
> <%
> Dim rs_UserAccess
> Dim rs_UserAccess_numRows
>
> Set rs_UserAccess =
Server.CreateObject("ADODB.Recordset")
> rs_UserAccess.ActiveConnection =
MM_conn_sidecounter_STRING
> rs_UserAccess.Source = "SELECT * FROM tbl_users WHERE
username = MM_Username"
> rs_UserAccess.CursorType = 0
> rs_UserAccess.CursorLocation = 2
> rs_UserAccess.LockType = 1
> rs_UserAccess.Open()
>
> rs_UserAccess_numRows = 0
> %>
>
>
>
> Any help would be appreciated. I have outlined below the
different
> combinations I have tested.
>
>
> Try No1
> rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
username =
> Session("MM_Username")?
> Message:
> Microsoft VBScript compilation error '800a0401'
> Expected end of statement
> /main.asp, line 182
>
> Try No2
> rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
username =
> Session(?MM_Username?)?
> Message:
> Microsoft OLE DB Provider for ODBC Drivers error
'80040e14'
> [Microsoft][ODBC Microsoft Access Driver] Undefined
function 'Session' in
> expression.
> /main.asp, line 186
>
> Try No3
> rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
username =
> Session(MM_Username)?
> Message:
> Microsoft OLE DB Provider for ODBC Drivers error
'80040e14'
> [Microsoft][ODBC Microsoft Access Driver] Undefined
function 'Session' in
> expression.
> /main.asp, line 186
>
> Try No4
> rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
username = Session
> Variable MM_Username"
> Message:
> Microsoft OLE DB Provider for ODBC Drivers error
'80040e14'
> [Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in
> query expression 'username = Session Variable
MM_Username'.
> /main.asp, line 186
>
> Try No5
> rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
username = MM_Username"
> Message:
> Microsoft OLE DB Provider for ODBC Drivers error
'80040e10'
> [Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 1.
> /main.asp, line 186
>
> Thanks in advance
> Cheers
> Downsy
>
>
> -
Use of session variable to retrieve user language
Hi,
I'm converting some ASP code to JSP and I'm having a problem concerning session variables, in ASP I had something like this
(first.asp)
<td align="center" width=145px><%=getLabel(1)%>
and in second.asp
dim Label(3,2)
function GetLabel(ndx)
GetLabel = Label(ndx, Session("Language"))
end function
clang_PT = 1 ' Portuguese
clang_EN = 2 ' English
Label(0,clang_PT) = "primeira"
Label(1,clang_PT) = "Segunda"
Label(0,clang_PT) = "first"
Label(1,clang_PT) = "second"
when trying to do the same thing in JSP
(first.jsp)
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="labels.jsp"%>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<%if (session.isNew()) {
session.setAttribute("Language","1");
}%>
<%= getLabel(1)%>
(labels.jsp)
<%@ page language="java" import="java.util.*"%>
<%@page pageEncoding="UTF-8"%>
<%! String getlabel(int ndx){
return label[ndx][session.getAttribute("Language")];
String[][] label = new String[2][2];
%>
<%
int clang_PT = 0; // Portugu�s
int clang_EN = 1; // Ingl�s
label[0][clang_PT] = "primeira";
label[1][clang_PT] = "segunda";
label[0][clang_EN] = "first";
label[1][clang_EN] = "second";
%>
I get
cannot find symbol symbol : variable session location: class org.apache.jsp.experiencia_jsp return label[ndx][session.getAttribute("Language")];
^
and
cannot find symbol : method getLabel(int)
location: class org.apache.jsp.experiencia_jsp
out.print( getLabel(1));
Should I use a bean to store this kind of info?
thanks, Vright...
actually, cuz doing this:
<%!
String getlabel(int ndx){
int lang = Integer.parseInt((String)session.getAttribute("Language"));
return label[ndx][lang];
%>
there's no session object... that creates a method in the class separate from the main JSP method. So you need to either pass the session object in, or just pass the attribute value..
<%!
String getlabel(int ndx, int lang){
return label[ndx][lang];
%>
int lang = Integer.parseInt((String)session.getAttribute("Language"));
String lable = getLabel(ndx, lang); -
Alternate method to writing filter for recordset using session variable
I'm not sure if this can be done. I have a user page which I'd like to return database info based upon a userid entered on another page. So far, the session variable (userid) is captured on the user page however it is supposed to return the user's name rather than displaying the session variable.
My problem is this. Within dreamweaver, I am able to create recordsets however I cannot create a filter. The connection works. At this point, I am searching for a workaround where I can tie in the session variable to recordsets. I should make mention that whenever I update the sql statement using the recordset widget, my recordset disappears. ? At any rate, heres a sample of the code sans connection strings, etc.
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_newuniversity1_STRING
Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid = '" & Session("userid_my") & "'"
Recordset1_cmd.Prepared = true
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
On the user page, I have a 'Welcome' and the following code
{Request.userid_my}
Any suggestions? I'm afraid I'm a newbie to asp within dreamweaver cs3.>When I insert request.userid_my code it returns the session variable
AFAIK, session variables are not part of the request object - so I do not understand why you are referencing them this way. I would use the standard reference method : Welcome <%Response.Write(Session("username"))%>
>when I insert the recordset associated with 'name' I get an Adobe End of file error. ?
Sounds like a possible problem with your installation. You may need to try reinstalling DW. How are you "inserting" this recordset and when does the error occur?
Regarding your next post...
>select name from table_name where userid = '" & namemy & "'"
>The statement consistently returns a 'quoted string not properly terminated' error.....
The select statement you quoted is obviously not complete. If you are refering to the select in your OP:
Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid = '" & Session("userid_my") & "'"
I see nothing wrong with that syntax and the string appears to be terminated correctly. If there is a different statement causing the error, please post the entire line and include a line above and below. -
Hi All,
I have created a write back report and successfully inserted records into a table.
Now i want to capture the user who has inserted in to the table.
Till now i have given edit option to the users on USERNAME column.
But now i want to capture the user automatically.
when i user VALUEOF(NQ_SESSION.USER), i can capture the Logged in user in USERNAME col and the moment i execute the report it is throwing an error.
What i observed is....
In the advanced tab USERNAME col is changed to VALUEOF(NQ_SESSION.USER).
is there any workaround for this?
Thanks>>I have a session variable assigned to the ID#(auto
number in access db) of messages posted.
I not sure if I follow your in the description. I would
assign the Record ID to the session variable.
Place the Record id in the repeat region.
Then you could assign that record id to a session variable
when the button is click, capture the button click event. Then
redirect to the EMPLOYEEMessageDELETE1.asp page, which will read in
the session variable (record id) to be deleted.
David Pearson -
Creating a session variable with PHP
Can anyone offer me a PHP script that creates a session
variable? The Dreamweaver CS3 Help documentation offers coding
samples for ColdFusion and ASP but not for PHP. I tried this
without success:
"$_SESSION['usermail']= $_POST['sub_email'];" in which I am
trying to capture an email address from a form and save it to use
in a confirmation email to a new subscriber. Any help would be
sincerely appreciated.
[email protected]I use this -
<?php
if (!isset($_SESSION)) {
session_start();
?>
at the top of the page, and then this within the code block
where you are
processing the form's data -
$_SESSION['usermail']= $_POST['sub_email'];
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Jugdish" <[email protected]> wrote in
message
news:gb8aov$691$[email protected]..
> Can anyone offer me a PHP script that creates a session
variable? The
> Dreamweaver CS3 Help documentation offers coding samples
for ColdFusion
> and ASP
> but not for PHP. I tried this without success:
> "$_SESSION['usermail']= $_POST['sub_email'];" in which I
am trying to
> capture
> an email address from a form and save it to use in a
confirmation email to
> a
> new subscriber. Any help would be sincerely appreciated.
> [email protected]
> -
Setting & Retrieving Session Variables
Hi,
I’m new at session variables and having trouble
understanding the basics.
I have a form with two dropdowns. I want to store the
selections from both in session variables. Then pass those to
another page where I want to display the selected values in my
headline such as “You searched for [value1] and [value2]." I
can’t get this to work right. I’ve gone through DW Help
and tutorials and still can’t figure it out.
Any help would be much appreciated.
DW CS3, ASP and Access
Thanks,> I?m new at session variables and having trouble
understanding the basics.
>
> I have a form with two dropdowns. I want to store the
selections from both
> in
> session variables. Then pass those to another page where
I want to display
> the
> selected values in my headline such as ?You searched for
[value1] and
> [value2]." I can?t get this to work right. I?ve gone
through DW Help and
> tutorials and still can?t figure it out.
>
> Any help would be much appreciated.
>
> DW CS3, ASP and Access
On your form action page, put this in:
<%
Session("varOne") = Request.Form("dropdown1")
Session("varTwo") = Request.Form("dropdown2")
%>
To write the sessions to the page, put this:
You searched for <%=varOne%> and <%=varTwo%>.
Maybe you are looking for
-
Open VI Reference Error in the executable version only
Hello folks! I am having a strange issue since I updated to Labview 2014: I have a vi that uses "Open VI Reference" in order to programmatically open the desired vi. It worked flawless also in the compiled version (.exe) of the program until yesterda
-
Hi, Caused by: java.security.NoSuchAlgorithmException: No such algorithm: PbeWithSHAAnd3_KeyTripleDES_CBC at javax.crypto.SunJCE_b.c(DashoA12275) at javax.crypto.SunJCE_b.a(DashoA12275) at javax.crypto.Cipher.a(DashoA12275)
-
i went to access my iphoto on my mac and there are no photo's or anything, it will not open, so i tried to upload from my camera and it wont do that either, does anyone have any idea's where or what could of happened to my pictures..
-
ATV2 won't output HD to my HDTV
I had a first-generation Apple TV that worked fine with my Panasonic 54" HDTV. My wife got me an Apple TV 2 that will only give me 480p resolution using the same setup. In researching this problem, I believe the issue is this: While my TV supports 10
-
15" Macbook Pro (Early 2008) Freezing and Acting Strange
Hello All, I don't have the original disks, and cannot run a hardware test, so no idea what is wrong. My computer will freeze frequently, often times when I am trying to do multiple things, watch video (flash like hulu), or try to access the items l