Click to See Complete Forum and Search --> : FormsAuthentication


MoonNight
January 15th, 2003, 04:26 PM
Hi!

I would like to know how to prevent an user to access a page that he once logged into but that he left. I don't want him to be able to view even using the back button on his browser.

Moon

pareshgh
January 15th, 2003, 05:48 PM
Provide the login screen and use session. once the session is expired its automatically loged out and on back page the session should expire.

you should also look in sesssion state

Paresh

MoonNight
January 16th, 2003, 08:50 AM
Hi,

I already have a loggin page and the session is set to expire in X amount of minutes.

But after the page has expired, the user can still use the BACK button of his browser to go back to the pages that he previously viewed. I want to make sure that this is not possible.

I have seen secure shopping website that would show a "Page Expired" page when an user try to navigate back his path using his browser buttons, but I am not sure how to implement it in VB.NET.

Thank you in advance.

Moon

DSJ
January 16th, 2003, 09:54 AM
Take a look at:

Response.Cache.SetCacheability

MoonNight
January 16th, 2003, 10:31 AM
That's exactly what I wanted. Thank you very much!
Moon