Hi,
I want to disabled the Back button from one page in particular (logoff page).
I don't want to let the client come back to the site without a username or a password.
Printable View
Hi,
I want to disabled the Back button from one page in particular (logoff page).
I don't want to let the client come back to the site without a username or a password.
I had the same problem, i pretty sure you can't, i search
a lot for it!
solution:
put your logoff in a new window and close your previous,
that way their will be no turning back!!!
two things you could do here.
Make the log in set a session variable.
Make the log off the destoy the session object.
have code at the top of each page checking for the Session variable and redirect to a login page if it isn't set.
another option is to have a page which redirects to the logoff page
so a link to log off loads another page which then loads the logoff page. That way a click on the Back button will reload the middle page and redirect back to the log off page.
Have I explained this ok?
That ^^^ is the solution. Don't ever disable the back button. Your users will HATE you for it.
Here is a helpful article about disabling the back button:
http://www.4guysfromrolla.com/webtech/111500-1.shtml