Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie - How to disable browser's back button?
Message
From
16/02/2006 12:38:40
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
16/02/2006 12:02:25
Teddy Win
Bytel Information Technology
Jakarta, Indonesia
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01096778
Message ID:
01096795
Views:
15
>Dear All,
>
>I am very new to ASP.NET, I have just created my 1st login page, my question is very simple, when user has successfully passed the login page then he redirected to a new page, how to disable the browser's back button? so he unable to back to the login page until he click available "Logout" link.
>
>please help
>
>Thanks and Regards
>Teddy

Teddy,

A better approach may be to put both the login and logout functions in separate panels on the same web page. When the page loads and the user is already logged in, display both panels (in case the user wants to login under a different account without first logging out). When the page loads and the user is not logged in, display only the login panel.

In web applications, there is no dependable way to force users to log out of the system. The best that can be done is to have a background service on the web server or database server that periodically checks the last time each user has accessed a page in the system. If a certain threshold is passed, the background service automatically logs the user out.

- Keith

P.S. I see that you are from Jakarta. Do you like western rock music? I will be over there in late April or May to do a couple of shows at the Jakarta/Hilton CC.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform