Jump to content

Auto logout old session on new login

Recommended Posts


I am want to make a hook that auto logout old session from same user.

I already know IP based system but i need it should work even if client logged in into other browser on same computer and same IP.

So we are storing session of login on database then we can load that session and destroy it.

i will use it with:

add_hook('ClientLogin', 1, function($vars) {
    // Perform hook code here...


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated