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

sessions issue- should be easy

Status
Not open for further replies.

Bastien

Programmer
May 29, 2000
1,683
CA
in my pages, after the application is completed, i use session.abandon to destroy all the session variables. If the user click the back button, the session seems to stay active. How can I fix this.

If I put a session.abandon in the page before all the session items are normally created, will that cause a problem if there are no sessions active?

Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
That is possibly because the session is being created again on that page. I would try this...


<%

'# After...

session.abandon

'# create a session like...

session(&quot;redirUser&quot;) = True

%>

And on the page the user goes back to when they click the backbutton before sessions are created do this... (top of page)

<% If session(&quot;redirUser&quot;) = True then

Response.Redirect &quot;complete.asp&quot;
Response.End '# Stop reading the rest of the page..&quot;

%>

Hope that helps...

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top