Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > session vars

Reply
Thread Tools

session vars

 
 
Al
Guest
Posts: n/a
 
      12-13-2004
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.



 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      12-13-2004
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

"Al" <> wrote in message
news:...
> 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.
>
>
>



 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      12-13-2004
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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
Al
Guest
Posts: n/a
 
      12-13-2004
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

"Evertjan." <> wrote in message
news:Xns95BED0F4E2667eejj99@194.109.133.29...
> 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.
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



 
Reply With Quote
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      12-14-2004
Did you read the the second half of my post?

Ray at work

"Al" <> wrote in message
news:%...
> 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
>
> "Evertjan." <> wrote in message
> news:Xns95BED0F4E2667eejj99@194.109.133.29...
> > 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.
> >
> > --
> > Evertjan.
> > The Netherlands.
> > (Please change the x'es to dots in my emailaddress)

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use self.vars in class.method(parameters, self.vars) caccolangrifata Python 18 07-22-2011 10:22 PM
How do I declare global vars or class vars in Python ? Linuxguy123 Python 7 02-20-2009 06:45 PM
app vars and cache vars Jon ASP .Net 3 12-14-2004 08:52 PM
Re: Session vars Natty Gur ASP .Net 0 06-25-2003 02:59 PM
Re: Session vars Justin SB ASP .Net 0 06-25-2003 02:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57