1

I want to allow only one session at the time across browsers and PCs. I want to "disconect" or log out to the old session if a new session starts in Wordpress.

2
  • WordPress doesn't use sessions, it uses cookies.
    – Wyck
    Feb 3, 2013 at 17:10
  • Using cookies exist a way?
    – Tanenbom
    Feb 3, 2013 at 18:14

1 Answer 1

-1

You can do this by changing LOGGED_IN_KEY constant in your wp-config.php before logging in.

define('AUTH_KEY', 'put your unique phrase here');

Update: it's better to invalidate all secret keys. They can be generated by Wordpress own generator here: https://api.wordpress.org/secret-key/1.1/

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.