Hi again.
I would like to know. If the user log off your site. How do you stop him (or the website) not to go back (click the back button or with his history)
Thanks
Printable View
Hi again.
I would like to know. If the user log off your site. How do you stop him (or the website) not to go back (click the back button or with his history)
Thanks
i hope u r maintaning some id like userid to keep track of the user...so when the user logs off set this userid to 0 or make it empty....and in all u'r screens (ofcourse other than the login screen) check for a non-zero or non-empty userid before showing !!!
Hope this helps !!!
Thanks for the reply.:)
The problem I had was. I set the userID = "" and in my include files I check the userID.
But when I log off, i exit the system. But then I press back on my brower and then I'm back in. Can see all my pages i visited. It is like i never left the site.
Is it with my code, or with IIS maybe?
Assuming your storing the userID in the session object, you should use Session.Abandon in your logoff page.