Results 1 to 3 of 3

Thread: java sessions

  1. #1
    Raghuvasa is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default java sessions

    i have done one web project in that i have one probllem.

    i signout of my site and then if click back button it will showing same pages with my login details.

    i am doing session invalidate but its again going to login why?

    how can i do session invalidate?

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Isn't this more properly a servlet question? or Tomcat or glassfish?

  3. #3
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Posts
    286
    Rep Power
    6

    Default

    Are you sure that the browser is actually hitting your server to get the page after you call invalidate() -- it could be that the browser is just showing a cached version.

    I'm not just sure if this is what's happening, but as a precaution try calling:

    res.setHeader("Cache-Control", "no-store");

    (where res is the servlet response object of couse) before any page that you send that requires login.

Similar Threads

  1. Http Sessions
    By manasa in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 10:51 AM
  2. Sessions in jsp
    By Ed in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-02-2007, 03:46 PM
  3. sessions in jsp
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-30-2007, 03:44 PM
  4. Sessions and logout question
    By orchid in forum Web Frameworks
    Replies: 1
    Last Post: 05-18-2007, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •