aspose file tools*
The moose likes Servlets and the fly likes Login/logout Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Login/logout Problem" Watch "Login/logout Problem" New topic
Author

Login/logout Problem

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

i m used is only core jsp and servelets are used
in my project ....
1. firstly the login page is show , the user name and password verify by the container use the context.xml file from the database (use datasource technique)
2. when the user login , the main page or home page is show , at this time , the new session is created and user name attribute is set at the session scope , but at this time , when i click to the browser back button , the login page is show again , but in normal web site , after login , when we press the browser back button , the login page does not display without logout.
3. when the user click on to the logout button , the logout page is show, at this time the session is invalidate , but when click to the browser back button , the main page or home page again display, without any login , but in normal website , after logout , when click to the browser back button the pmain page or home page does not displayed without login

in my project , me use servelet 3.0 manual login() function to chcek the user name and password , and manual logout() function .

How to solve this login and logout problem?


With Regards :-
Harmeet Singh
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

but there is no proper anwser , about his topic , some of the cache clear code does not work..
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1000
    
    2
Have you read this:
http://www.coderanch.com/t/485192/JSP/java/JSP-login-logout-session

or this might helps:
http://www.javaworld.com/javaworld/jw-09-2004/jw-0927-logout.html?page=1
 
 
subject: Login/logout Problem