• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Login/logout Problem

 
Ranch Hand
Posts: 115
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Singh Harmeet
Ranch Hand
Posts: 115
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but there is no proper anwser , about his topic , some of the cache clear code does not work..
 
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read this:
https://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
reply
    Bookmark Topic Watch Topic
  • New Topic