Results 1 to 2 of 2

Thread: Max Session Issue

  1. #1
    Join Date
    Dec 2011
    Posts
    6

    Default Max Session Issue

    I have an issue where user can't no longer login when the close their browser without logging out. So I have max sessions allowed to ( max-sessions="2"). And if the user logs in, closes browser a couple of times he/she can't login anymore. Is there a way to timeout those orphan session? If not, what can I do to prevent this type of scenario (other than asking user to logout when they are done).

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Session will time out eventually (tomcat default is 30 minutes). When a user does shutdown his browser there isn't much you can do, you could try to execute some javascript, although this isn't 100% save. (Also what if the computer of the user crashes, power down etc.).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

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