Results 1 to 3 of 3

Thread: Session Issue

  1. #1
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

    Thumbs up Session Issue

    Hi Folks,

    When i say signout my web page is listening my signoutpg.jsp but the problem is when i click the back button of the browser it is going to the previous page...i need to disable this but browser back button disabling is not a feasible soln...i need to kill the session ..where i m new to this concept..anybody suggest me how to clear the cookies

    If m wrong please suggest me the right way...

    Thanks

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    in order to kill session you should make following command:
    Java Code:
    session.invalidate();
    And delete cookie is
    Java Code:
    cookie.setMaxAge( 0 );

  3. #3
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    149
    Rep Power
    0

Similar Threads

  1. Threading issue
    By Eku in forum New To Java
    Replies: 2
    Last Post: 09-18-2008, 11:47 AM
  2. Compile Issue
    By CrazyShells Slam in forum New To Java
    Replies: 4
    Last Post: 05-14-2008, 09:51 PM
  3. JFormattedTextField Issue
    By teracomp in forum AWT / Swing
    Replies: 1
    Last Post: 01-21-2008, 07:55 PM
  4. Try Catch issue
    By curtis_fraser in forum Advanced Java
    Replies: 2
    Last Post: 12-14-2007, 12:04 AM
  5. Issue
    By chaitu444 in forum New To Java
    Replies: 2
    Last Post: 11-06-2007, 08:49 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
  •