Title: Prevent Concurrent Logins
Author: Frankie Jarrett
Published: <strong>دسمبر 31, 2014</strong>
Last modified: اگست 16, 2016

---

پلگ انز تلاش کریں

![](https://ps.w.org/prevent-concurrent-logins/assets/banner-772x250.png?rev=1152517)

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

![](https://ps.w.org/prevent-concurrent-logins/assets/icon-256x256.png?rev=1152517)

# Prevent Concurrent Logins

 منجانب [Frankie Jarrett](https://profiles.wordpress.org/fjarrett/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/prevent-concurrent-logins.0.4.0.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/prevent-concurrent-logins/#description)
 * [جائزے](https://ur.wordpress.org/plugins/prevent-concurrent-logins/#reviews)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/prevent-concurrent-logins/#developers)

 [معاونت](https://wordpress.org/support/plugin/prevent-concurrent-logins/)

## تفصیل

**Did you find this plugin helpful? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/prevent-concurrent-logins).**

 * Deters members/subscribers from sharing their accounts with others
 * Hardens security by destoying old sessions automatically
 * Prompts old sessions to login again if they want to continue
 * Ideal for membership sites and web applications

**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_.

**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.**

## عمومی سوالات

  Where are the options for this plugin?

This plugin does not have a settings page. Simply put, I don’t like bloating my 
plugins with a bunch of options.

Instead, 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”.

For the other 20% of you who want things to behave differently there are hooks available
in the plugin so you can customize default behaviors.

  Can I still allow concurrent logins for certain users?

Yes, simply add this code to your theme’s `functions.php` file or as an [MU plugin](https://codex.wordpress.org/Must_Use_Plugins):

    ```
    function my_pcl_whitelist_user_ids( $prevent, $user_id ) {

        $whitelist = array( 1, 2, 3 ); // Provide an array of whitelisted user IDs

        return in_array( $user_id, $whitelist ) ? false : $prevent;

    }
    add_filter( 'pcl_prevent_concurrent_logins', 'my_pcl_whitelist_user_ids', 10, 2 );
    ```

Or this code to bypass users with certain roles:

    ```
    function my_pcl_whitelist_roles( $prevent, $user_id ) {

        $whitelist = array( 'administrator', 'editor' ); // Provide an array of whitelisted user roles

        $user = get_user_by( 'id', absint( $user_id ) );

        $roles = ! empty( $user->roles ) ? $user->roles : array();

        return array_intersect( $roles, $whitelist ) ? false : $prevent;

    }
    add_filter( 'pcl_prevent_concurrent_logins', 'my_pcl_whitelist_roles', 10, 2 );
    ```

## جائزے

![](https://secure.gravatar.com/avatar/d17c9efc6a6698306da99f672f9f2e2babafdff192b60c68bcc10e02f80355c8?
s=60&d=retro&r=g)

### 󠀁[Awesome!!](https://wordpress.org/support/topic/awesome-8521/)󠁿

 [mcostam1985](https://profiles.wordpress.org/mcostam1985/) فروری 2, 2021

Your awesome man! This plugin with your functions.php code works perfectly. Thank
you so much for the time spent working on it.

![](https://secure.gravatar.com/avatar/9960a2d68d7837b4efea4bed323193efe05caaa22d0a1843700bf1d2bbbb0cd1?
s=60&d=retro&r=g)

### 󠀁[This plugin is great and has not required any update for 4 years](https://wordpress.org/support/topic/great-11871/)󠁿

 [nddao](https://profiles.wordpress.org/nddao/) اگست 13, 2020

THIS PLUGIN IS SIMPLE AND PERFECT THAT THE AUTHOR HAS NOT NEED TO UPDATE ANYTHING
SINCE LAST 4 YEARS. I had to create an account just to give this plugin a 5-star
rating and let people know that it works perfectly. I was looking for something 
to prevent users from concurently login and found this plugin. However, the age 
of this plugin and the number of active installation (1000+ at this time) made me
skip it. The information that this plugin was updated 4 years ago further drove 
me away. I decided to install another plugin, which made me crazy because it kept
log me out every couple minutes. Then I removed the mentioned plugin and gave this
plugin a try, and it works as much as I expect.

![](https://secure.gravatar.com/avatar/f6a2a31ab79528bd5b9e45c9f6afbe02de021f073f200270c274de4ea8c60f91?
s=60&d=retro&r=g)

### 󠀁[GREAT!](https://wordpress.org/support/topic/great-10557/)󠁿

 [César](https://profiles.wordpress.org/easytomake/) دسمبر 12, 2019

I tried it on my easytomake online course site, and used 3 browsers. Disconnect 
the others! Thank you CÉSAR

![](https://secure.gravatar.com/avatar/f892702cbf3052de058ab4d493b8a7423080c1df323c3c9c152b84261d3e77d1?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-8773/)󠁿

 [Eder Tuffic](https://profiles.wordpress.org/eder-tuffic/) نومبر 12, 2018

It was exactly what I needed for my course. Thank you!

![](https://secure.gravatar.com/avatar/cc591a741df3cc47bdd270c8e38de35ba572115b455fdf8a080291a7c91d83b6?
s=60&d=retro&r=g)

### 󠀁[Muito bom](https://wordpress.org/support/topic/muito-bom-398/)󠁿

 [uilianv](https://profiles.wordpress.org/uilianv/) اپریل 5, 2017 1 reply

Faz o que promete, resolve o problema, sem nenhum requinte desnecessário

![](https://secure.gravatar.com/avatar/0892a203e80a80876d2e78fb0405c8a2cca9154ada06d051706d7af4e41cef63?
s=60&d=retro&r=g)

### 󠀁[Super!](https://wordpress.org/support/topic/super-738/)󠁿

 [Vasily](https://profiles.wordpress.org/vdvortsov/) مارچ 18, 2017

Love the functionality. Exactly what i need now. Thank you very much!

 [ تمام 17 جائزے پڑھیں ](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/)

## شراکت دار اور ڈیویلپرز

“Prevent Concurrent Logins” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان
میں حصہ لیا:

شراکت دار

 *   [ Frankie Jarrett ](https://profiles.wordpress.org/fjarrett/)

[“Prevent Concurrent Logins” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/prevent-concurrent-logins)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/prevent-concurrent-logins/)،
[ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/prevent-concurrent-logins/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/prevent-concurrent-logins/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/prevent-concurrent-logins/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

#### 0.4.0 – October 16, 2015

 * Official support for WordPress 4.3

Props [fjarrett](https://github.com/fjarrett)

#### 0.3.0 – May 4, 2015

 * Action hooks now available after sessions are destroyed for logging purposes 
   [(#4)](https://github.com/fjarrett/prevent-concurrent-logins/issues/4)

Props [fjarrett](https://github.com/fjarrett)

#### 0.2.0 – January 28, 2015

 * Destroy old sessions for all users upon activation

Props [fjarrett](https://github.com/fjarrett), [chuckreynolds](https://github.com/chuckreynolds)

#### 0.1.1 – January 2, 2015

 * Added filter to allow certain users to have concurrent sessions when necessary

Props [fjarrett](https://github.com/fjarrett), [nutsandbolts](https://github.com/nutsandbolts)

#### 0.1.0 – December 31, 2014

 * Initial release

Props [fjarrett](https://github.com/fjarrett)

## میٹا

 *  Version **0.4.0**
 *  Last updated **10 سال پہلے**
 *  Active installations **900+**
 *  WordPress version ** 4.1 یا اس سے جدید **
 *  Tested up to **4.6.30**
 *  Language
 * [English (US)](https://wordpress.org/plugins/prevent-concurrent-logins/)
 * Tags
 * [login](https://ur.wordpress.org/plugins/tags/login/)[membership](https://ur.wordpress.org/plugins/tags/membership/)
   [security](https://ur.wordpress.org/plugins/tags/security/)[sensei](https://ur.wordpress.org/plugins/tags/sensei/)
   [users](https://ur.wordpress.org/plugins/tags/users/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/prevent-concurrent-logins/advanced/)

## درجہ بندیاں

 5 out of 5 stars.

 *  [  17 5-star reviews     ](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/prevent-concurrent-logins/reviews/)

## شراکت دار

 *   [ Frankie Jarrett ](https://profiles.wordpress.org/fjarrett/)

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/prevent-concurrent-logins/)