Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie - How to disable browser's back button?
Message
De
16/02/2006 12:38:40
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
16/02/2006 12:02:25
Teddy Win
Bytel Information Technology
Jakarta, Indonésie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01096778
Message ID:
01096795
Vues:
14
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform