PDA

Click to See Complete Forum and Search --> : How to disabled the BACK button


darso88
Dec 6th, 2000, 10:35 AM
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.

sebs
Dec 6th, 2000, 09:10 PM
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!!!

Mark Sreeves
Dec 7th, 2000, 02:40 AM
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?

monte96
Dec 7th, 2000, 09:27 AM
That ^^^ is the solution. Don't ever disable the back button. Your users will HATE you for it.

compuGEEK
Dec 7th, 2000, 09:44 AM
Here is a helpful article about disabling the back button:

http://www.4guysfromrolla.com/webtech/111500-1.shtml