Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2011
    Location
    Space
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Session destroying.

    I was wondering, how would you destroy a session of the first person if someone logged into the same account of a certain website using another browser on the same computer or a different computer all together?
    Last edited by Celestial; 11-07-2011 at 06:39 PM.

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,960
    Thanks
    120
    Thanked 76 Times in 76 Posts
    This has nothing to do wth MYSQL, but:

    1. Jou would need to store user_id & session_id into app global variable (array)
    2. check when new user logs in
    3. at least in java: oldSession.setMaxInactiveInterval(1)

    that would destroy old sessin in a second.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


  •  

    Posting Permissions

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