Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
WordPress doesn't use sessions, it uses cookies. –  Wyck Feb 3 '13 at 17:10
    
Using cookies exist a way? –  Jesus L. Feb 3 '13 at 18:14

1 Answer 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/

share|improve this answer
    
This does not answer the question. –  Chris_O Feb 3 '13 at 8:35
    
@Chris_O, really? > You can change these at any point in time to invalidate all existing cookies. This does mean that all users will have to login again. codex.wordpress.org/Editing_wp-config.php#Security_Keys –  Max Yudin Feb 3 '13 at 9:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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