Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Variables

Status
Not open for further replies.

streborr

IS-IT--Management
Jan 16, 2002
98
I'm trying to pass variable to another page:

User_name is taken from a db when a user logs in.
<% session(&quot;ID&quot;)= rsADO(&quot;user_name&quot;) %>


When the user is sent to another page I do this:
<% response.write session(&quot;ID&quot;) %>

&quot;name=&quot; is what shows up.

What am I doing wrong?

Thanks for your help
Rick
 
Is your session state enabled? If you're using IIS it'll be within the dialog box properties of the specific web site, then go to your Home Directory Tab, click on the Configuration button near the bottom which opens another dialog box, then select the App Options tab and within there, there is a checkbox that reads &quot;Enable session state&quot;. Make sure it is checked. Then you can set your session timeout to whatever you want...default is 20 minutes.

If it is enabled....try with another browser or else computer...it may be that your current browser is setup to not accept per-session cookies in which case you'll have to enable that if you want it to work.

If neither of those things work...let me know.
-Ovatvvon :-Q
 
I forgot to mention that the webserver is not at my disposal.
 
ok...Is the per-session cookies enabled? That could stop it from happening as the session ID can never be sent to the client then.(???) -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top