no back
-
Hi i have a login script, but after the user has logged out, i want to disable the back button. how is this done, and is it a proper controlling method? tx
To my knowledge there is no way to disable the the back button on the clients browser. If you are using a session to monitor the login status then you should remove it after logout and check it on all pages.
-
Hi i have a login script, but after the user has logged out, i want to disable the back button. how is this done, and is it a proper controlling method? tx
Brakanjan wrote: i want to disable the back button I guess you dont want to allow the user to come back & access the page after he logged out, by clicking the 'back' button. There may be javascript(s) to disable the 'back' button... But the right way to do your job is to control the page access with the session/cookies that are set in the 'login' process. So... they become invalid when the user presses the 'back' button, and the user would be redirected to the custom wrror page!!! I was born intelligent
Education ruined me!. -
Brakanjan wrote: i want to disable the back button I guess you dont want to allow the user to come back & access the page after he logged out, by clicking the 'back' button. There may be javascript(s) to disable the 'back' button... But the right way to do your job is to control the page access with the session/cookies that are set in the 'login' process. So... they become invalid when the user presses the 'back' button, and the user would be redirected to the custom wrror page!!! I was born intelligent
Education ruined me!.Check this: http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/history.html You can try calling the forward method in history object as the first line. Is'nt it? Deepak Kumar Vasudevan Personal Web: http://www24.brinkster.com/lavanyadeepak/default.asp I Blog At: http://deepak.blogdrive.com/
-
Hi i have a login script, but after the user has logged out, i want to disable the back button. how is this done, and is it a proper controlling method? tx
Use the image button to control this problem. Check the userID value is true then show the back button image else switched off. If you taking about the IE back button its not possible. Only way you can check some authentication in your beging of your script to display your page contect. ---------------------------- while 1 yours friendly