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

ASP Sessions

Status
Not open for further replies.

Enndiem

Technical User
Jun 2, 2005
4
0
0
CA
I've got a couple pages where I use ASP sessions to maintain state between them. However, if the session expires while they're on the page and then tries to go to one of the pages that utilizes the session, I get an ugly ASP error. Is there a way to check for the existence of a session at the initial loading of each page? And if so, what's the code i need to put in?
 
You could make a short file with only the script for checking to make sure that the session variable is set... and then use it as an INCLUDE file and insert the include directive at the top of each page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top