session vars

A

Al

Is possible to terminate all session variable created
without closing the browser

I do not want users to click on BACK button on browser or paste the url link
in the http:// and shows the record displayed after logout. This works fine
if users close the Browser.
 
R

Ray Costanzo [MVP]

It sounds from your question that you actually want to end the session,
which will in turn destroy all the session variables. Use Session.Abandon.
As far as using the back button, the values will still display in the page
unless the page is set not to cache.
(http://www.aspfaq.com/show.asp?id=2022)

Ray at work
 
E

Evertjan.

Al wrote on 13 dec 2004 in microsoft.public.inetserver.asp.general:
Is possible to terminate all session variable created
without closing the browser

Removing all session variables can be done by

Session.Contents.RemoveAll()

or more drastically by

Session.abandon.
I do not want users to click on BACK button on browser or paste the
url link in the http:// and shows the record displayed after logout.
This works fine if users close the Browser.

Session variables live on the server only and have nothing to do with your
clientside problem.
 
A

Al

I this Session.abandon. already but still don't work
if I press the BACK botton it display the record.
and it only get destroyed when user close the Browser.

Thanks Again
 
R

Ray Costanzo [MVP]

Did you read the the second half of my post?

Ray at work

Al said:
I this Session.abandon. already but still don't work
if I press the BACK botton it display the record.
and it only get destroyed when user close the Browser.

Thanks Again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top