>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement