Click to See Complete Forum and Search --> : Disposing of session information/cache


Gyto
11-15-2007, 09:20 AM
Hi there,

I have an ASP web application which uses sessions to authenticate users. When the user logs in the session variables are set accordingly and when they logout I have used the following code to dispose of the session information and clear the buffers:


Session.Abandon()
response.clear()


However, if a user then goes directly back to a URL within the site they can still view that page until it is refreshed, despite the session information being cleared.

Is there a way to force it to check the session information everytime the page is loaded?

Thanks

Matt

mattyblah
11-15-2007, 01:13 PM
You can expire the page. that might work...

Gyto
11-16-2007, 05:12 AM
Thanks, I googled it for some code and think it might have done the trick.....cheers :)