Force users to logout when they leave my php website?

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-03-24T19:36:03Z Indexed on 2010/03/24 19:43 UTC
Read the original article Hit count: 308

Filed under:
|

In my php application, I'm using $_SESSION to track whether a user is logged in. If a user leaves any page on my site at http://mysite.com and goes to http://someotherwebsite.com, I want to automatically log them out, such that if they return to any page on http://mysite.com, they need to login again.

Is there an easy way to do this?

© Stack Overflow or respective owner

Related posts about logout

Related posts about php