I have written teh simple login page that directs teh user to his home page if the login is valid and when the user clicks log off, it directs the user to the login page.
The issue lies on this:
Onces teh user logs off he cannot go back to his home page using the browser back button.
I have used two step sfor this:
1. In the user's home page once the user has clicked log off, i have set URL path to loginpage, and in login page's Load() event i have cleared on the session objects's stored user name and password.
2. In the Load() of the user's home page i have writteon the following code:
|
How good is my technique or should i stickly use cookies and session IDs? I need to know Pros and Cons of my technique :)
TY
Kirtan PatelPosted Oct 25, 2009, 2:20 PM
rather than moving it to login page and then clearing session objects ???
and after redirecting to login page just check weather Session["username"] and Session["password"] are Null ?? then tell user to do login
if my idea helps you please check "Do you like this answer"