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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost Session Variables

Status
Not open for further replies.

rac2

Programmer
Apr 26, 2001
1,871
US
What to check in server or browser setups to account for intermittent loss of session variables?

This usually occurs just after a session is started and the page autorefreshes, but also occurs after longer periods of activity.

Windows 2000 server, IIS 5, XP and Win2000 clients, IE6 browsers, ActivePerl, ASP 3.0.
 
Well there is two different ways...
Code:
If session("session_name") = "" then
  Response.write "Session ended"
    Else
  Response.write "Session is still active"
End If

Or you can use a global.asa
GOOGLE SEARCH HELP: [URL unfurl="true"]http://www.google.com/search?hl=en&lr=&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=global+.asa+session+start&btnG=Search[/URL]

Sub Session_OnStart
'session started
End Sub

Sub Session_OnEnd
'session ended
End Sub


www.sitesd.com
ASP WEB DEVELOPMENT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top