CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2003
    Posts
    8

    logout problem in jsp

    when i try to logout by clicking the logout button...
    it work well ...

    but some users who do not click the logout button..and just close the browser by clicking the "X" at the top of the browser,

    what should i do to set the session to null when using clicking the 'X'

  2. #2
    Join Date
    Jun 2003
    Posts
    8

    Re: logout problem in jsp

    i am using jsp any recommendation ....

    trigger an event to update the database session.....b4 closing the browser ? how to do this..

  3. #3
    Join Date
    Apr 2003
    Location
    Los Angeles area
    Posts
    776

    Re: logout problem in jsp

    I don't think there is a reliable solution other than you must set a timeout for the session.

    HttpSession.setMaxInactiveInterval(int interval)

    You would put your database rectifying code in a HttpSessionListener's sessionDestroyed method. This is configured in your web.xml. Check out the apache jakarta taglibs for handy tags that aren't in the standard jsp.
    "The Chicken and Rice MRE is not a personal lubricant."

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured