{"id":21100617,"url":"https://github.com/frankiejarrett/prevent-concurrent-logins","last_synced_at":"2025-12-17T03:49:29.285Z","repository":{"id":25248752,"uuid":"28673575","full_name":"frankiejarrett/prevent-concurrent-logins","owner":"frankiejarrett","description":"Prevents users from being logged into the same WordPress site from multiple places.","archived":false,"fork":false,"pushed_at":"2017-10-25T12:14:11.000Z","size":155,"stargazers_count":25,"open_issues_count":3,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-16T17:40:17.138Z","etag":null,"topics":["membership","wordpress","wordpress-plugin","wordpress-security"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/prevent-concurrent-logins/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frankiejarrett.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-31T19:36:14.000Z","updated_at":"2025-05-05T16:55:55.000Z","dependencies_parsed_at":"2022-08-23T21:20:54.200Z","dependency_job_id":null,"html_url":"https://github.com/frankiejarrett/prevent-concurrent-logins","commit_stats":null,"previous_names":["frankiejarrett/prevent-concurrent-logins"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/frankiejarrett/prevent-concurrent-logins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankiejarrett%2Fprevent-concurrent-logins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankiejarrett%2Fprevent-concurrent-logins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankiejarrett%2Fprevent-concurrent-logins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankiejarrett%2Fprevent-concurrent-logins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frankiejarrett","download_url":"https://codeload.github.com/frankiejarrett/prevent-concurrent-logins/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankiejarrett%2Fprevent-concurrent-logins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27776610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["membership","wordpress","wordpress-plugin","wordpress-security"],"created_at":"2024-11-19T23:14:34.756Z","updated_at":"2025-12-17T03:49:29.270Z","avatar_url":"https://github.com/frankiejarrett.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- DO NOT EDIT THIS FILE; it is auto-generated from readme.txt --\u003e\n# Prevent Concurrent Logins\n\n![Banner](assets/banner-1544x500.png)\nPrevents users from staying logged into the same account from multiple places.\n\n**Contributors:** [fjarrett](https://profiles.wordpress.org/fjarrett)  \n**Tags:** [login](https://wordpress.org/plugins/tags/login), [users](https://wordpress.org/plugins/tags/users), [membership](https://wordpress.org/plugins/tags/membership), [security](https://wordpress.org/plugins/tags/security), [sensei](https://wordpress.org/plugins/tags/sensei), [sessions](https://wordpress.org/plugins/tags/sessions), [woocommerce](https://wordpress.org/plugins/tags/woocommerce)  \n**Requires at least:** 4.1  \n**Tested up to:** 4.6  \n**Stable tag:** 0.4.0  \n**License:** [GPL-2.0](https://www.gnu.org/licenses/gpl-2.0.html)  \n\n[![Build Status](https://travis-ci.org/fjarrett/prevent-concurrent-logins.svg?branch=master)](https://travis-ci.org/fjarrett/prevent-concurrent-logins) \n\n## Description ##\n\n**Did you find this plugin helpful? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/prevent-concurrent-logins).**\n\n* Deters members/subscribers from sharing their accounts with others\n* Hardens security by destoying old sessions automatically\n* Prompts old sessions to login again if they want to continue\n* Ideal for membership sites and web applications\n\n**Important:** If you plan to network-activate this plugin on a multisite network, please install the [Proper Network Activation](https://wordpress.org/plugins/proper-network-activation/) plugin _beforehand_.\n\n**Development of this plugin is done [on GitHub](https://github.com/fjarrett/prevent-concurrent-logins). Pull requests welcome. Please see [issues reported](https://github.com/fjarrett/prevent-concurrent-logins/issues) there before going to the plugin forum.**\n\n## Frequently Asked Questions ##\n\n### Where are the options for this plugin? ###\nThis plugin does not have a settings page. Simply put, I don't like bloating my plugins with a bunch of options.\n\nInstead, I try to develop functionality using the 80/20 principle so that for 80% of use cases you all you need to do is activate the plugin and it \"just works\".\n\nFor the other 20% of you who want things to behave differently there are hooks available in the plugin so you can customize default behaviors.\n\n### Can I still allow concurrent logins for certain users? ###\nYes, simply add this code to your theme's `functions.php` file or as an [MU plugin](http://codex.wordpress.org/Must_Use_Plugins):\n\n```php\nfunction my_pcl_whitelist_user_ids( $prevent, $user_id ) {\n\n    $whitelist = array( 1, 2, 3 ); // Provide an array of whitelisted user IDs\n\n    return in_array( $user_id, $whitelist ) ? false : $prevent;\n\n}\nadd_filter( 'pcl_prevent_concurrent_logins', 'my_pcl_whitelist_user_ids', 10, 2 );\n```\n\nOr this code to bypass users with certain roles:\n\n```php\nfunction my_pcl_whitelist_roles( $prevent, $user_id ) {\n\n    $whitelist = array( 'administrator', 'editor' ); // Provide an array of whitelisted user roles\n\n    $user = get_user_by( 'id', absint( $user_id ) );\n\n    $roles = ! empty( $user-\u003eroles ) ? $user-\u003eroles : array();\n\n    return array_intersect( $roles, $whitelist ) ? false : $prevent;\n\n}\nadd_filter( 'pcl_prevent_concurrent_logins', 'my_pcl_whitelist_roles', 10, 2 );\n```\n\n\n## Changelog ##\n\n### 0.4.0 - October 16, 2015 ###\n* Official support for WordPress 4.3\n\nProps [fjarrett](https://github.com/fjarrett)\n\n### 0.3.0 - May 4, 2015 ###\n* Action hooks now available after sessions are destroyed for logging purposes [(#4)](https://github.com/fjarrett/prevent-concurrent-logins/issues/4)\n\nProps [fjarrett](https://github.com/fjarrett)\n\n### 0.2.0 - January 28, 2015 ###\n* Destroy old sessions for all users upon activation\n\nProps [fjarrett](https://github.com/fjarrett), [chuckreynolds](https://github.com/chuckreynolds)\n\n### 0.1.1 - January 2, 2015 ###\n* Added filter to allow certain users to have concurrent sessions when necessary\n\nProps [fjarrett](https://github.com/fjarrett), [nutsandbolts](https://github.com/nutsandbolts)\n\n### 0.1.0 - December 31, 2014 ###\n* Initial release\n\nProps [fjarrett](https://github.com/fjarrett)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankiejarrett%2Fprevent-concurrent-logins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrankiejarrett%2Fprevent-concurrent-logins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankiejarrett%2Fprevent-concurrent-logins/lists"}