Hello, I’m utilizing WP Bouncer to restrict simultaneous logins on my website alongside Paid Membership Pro. Although it effectively limits concurrent logins, I encountered an issue where it redirected to the default wp-login page. To address this, I implemented some code to redirect users to the Paid Membership Pro login page. However, a new challenge emerged – in the previous scenario, it displayed a warning message to users about simultaneous logins. After applying the redirection code, this warning message is no longer visible.
I’ve noticed that the Paid Membership Pro login page does show an error message for incorrect passwords or usernames. The PMPro login form makes use of the core WP login form function.?I’m wondering if I can leverage this functionality to display an error message for simultaneous logins. The code I currently use for redirection is provided below. Thank you for your assistance.
add_filter(‘wp_bouncer_redirect_url’, ‘custom_bouncer_redirect_url’); function custom_bouncer_redirect_url($default_url) { return ‘https://tnpscmaster.in/login/’; }
]]>I am adding in code snippets the recipe (wp_bouncer_redirect_url) to redirect to a specific page when there are multiple logins, but it does not work. It keeps redirecting me to home.
add_filter( ‘wp_bouncer_redirect_url’, ‘my_wp_bouncer_redirect_url’ );
function my_wp_bouncer_redirect_url( $return_url )
{ $return_url = home_url( ‘/slug-costum-page/’ );
return $return_url; }
can you help me?
]]>Hello, I think I understand how the plugin works. But would like some clarification.
I will have a paid for live video. When a user goes to the page they won’t be visiting other pages, just watching the video.
I would like something that when User A logs in he sees the video but when User B tries to log in with the same credentials it says “sorry already in use – buy access”. I don’t think the plugin does that? It relies on moving about.
Therefore if there is a login page, that goes to a “click to see the video page” and then on to the live video page would that create the conditions for the plugin to stop access? I don’t think this would work either as it relies on user A moving off the page before they will see a denied access message.
Once user A is logged in he won’t surf or come off the page. So I need user B to be denied access before he gets to the live video.
Thanks so much for your help.
]]>Hi,
we are looking for a wordpress plugin that we can integrate into our membership platform created with wordpress.
We would like to limit the sharing of password so we ask if your plugin can restrict user’s access to a certain number of devices.
If so, how it works? Is there a page where users can see and reset registered devices? If not is it possibile to develop it? Your plugin provide functions to hook to?
Thanks
]]>Hello,
Suppose this case:
– User A is logged
– User B logged (with the same login as user A)
if user A doesn’t refresh or load a new page, he doesn’t log out.
How to redirect automatically user A to the home page, if user B is logged in???
Thank You!
]]>Kindly, how can I use the wp_bouncer_ignore_admins filter to logout admin? In what format is the code to be written?
]]>After a developer did some work on our theme, we noticed our bounce rate shot up from 10- 70%. My hunch is we’ve lost the code for this plugin. If I delete/uninstall the plugin and then reinstall, would that safely reinsert and get us back running properly? I don’t code or do HTML, so I’m hoping for an easy fix via what I can do at the admin level.
thanks,
Casey
I’m trying to solve some problems with this plugin for a friend of mine. I’m not the person who made initial setup (long story – it was her sone & now they’re not on speaking terms).
Situation 1
My friend, it’s her site & she’s got admin access, she changed her computer. She ended up creating new admin because the could not login with her old username-password.
Situation 2
Now, there is a client who failed to login and who doesn’t answer on who it looks like when she fail. I suspect that it’s the same story, she probably changed the device.
Question
Is there anyway to “reset the device” manually, so the user could login again and plugin would remember this access afresh.
PS
Sorry, I probably call it wrong way that’s why I could not find the answer in search…
Hi
in the wp-bouncer.php
there is this function :
//how many logins are allowed
$num_allowed = apply_filters(‘wp_bouncer_number_simultaneous_logins’, 1);
Can I change it to 3 ?
You mention also in previous question this hack bellow
what are the differences ?
should I let the filter bellow like this or can I change it ?
or need I to add this bellow ??
it’s not clear at all
tanks
/*
Change the number of simultaneous logins allowed.
Change the “2” below to the number required or use any logic you’d like to calculate.
Add this code to your active theme’s functions.php or a custom plugin.
*/
function my_wp_bouncer_number_simultaneous_logins($num) {
return 2;
}
add_action(‘wp_bouncer_number_simultaneous_logins’, ‘my_wp_bouncer_number_simultaneous_logins’);
Hello,
Supose this case:
– User A is logged
– User B logged (with the same login as user A)
if user A doesnt refresh or load a new page, he doesnt logged out.
How to redirect automatically user A to home page, if user B is logged in???
Thank You!
]]>Hello,
When I activated the debug mode I started receiving the following warning “wp_bouncer_heartbeat_check’ – assumed ‘‘wp_bouncer heartbeat check’’ (this will throw an error in a future version of PHP)”
How can I solve this?
Thanks
Is it possible to set a concurrent login session for a particular user? e.g:
user name: jack
can be login in 10 devices simultaneously.
user name: james
can be login in 1 device only.
I want to create two types of user lists. One user created by their self with no simultaneous login, and another created by me, which can be used for simultaneous login.
Is there any possibility of this, in this plugin? pls, help.
]]>Hi there,
I’m using Uncanny’s Front End Login module for custom login page. It redirects from wp-login to the custom login page. I notice I can’t get the bounce msg when using front-end-login but can get msg if using the standard wp-login.
Is there a way to get the msg to show up when using a custom login page that redirects away from wp-login like front-end?
thks kyle
]]>Hi,
I am using simple memberships pro plugin and have noticed when a user is logged out automatically, the custom message isn’t shown and instead the default message from the simple memberships pro plugin is shown which tells the user they need to login.
Are there any functions / filters I can use to check if the user has been logged out by this plugin so I can add a custom message to the default simple memberships pro plugin message?
Thanks
]]>Hello Jason,
I saw this question multiple time in this forum but I don’t find any answer. Everything is in the title.
I’ve tried disable all plugins responsible for redirect on my site, cache plugin, etc … to no avail. User is being disconnected but no warning message.
The get_redirect_url seems bypassed somehow.
Any idea which function I should look for in my site to pinpoint the problem?
Thanks a lot!
]]>Hi guys,
Hoping someone is still out there supporting this to some degree! I can’t find any other plugin that allows me to set my own login limit # so this one is my main hope.
As per title, I’m testing this with a subscriber login now and while it does seem to bounce the oldest session whenever a new session appears, there is no warning message appearing at all.
Is the plugin deprecated or something awry with newer WP versions? I have disabled the unauthorized user redirects that were being thrown in by MemberPress to see if that caused the grief, but get the same result.
Cheers!
EDIT – MY bad – just found another portion of MemberPress that was redirecting on logout, and causing the WP Bouncer login-warning.php to be bypassed altogether. It’s working as expected now, sorry!
]]>I have a membership site and have installed SP Bouncer to prevent users sharing their account with others by limiting active sessions.
Today I discovered an issue with this as some of my members are students in a class using ‘thin client’ computers and so are trying to access the site from the same IP. As WP Bouncer will only allow 1 session from a single device, when they all try to log in at the same time I get an immediate I/O fault which crashes the site for 30 seconds.
Apart from increasing the number of active sessions from a single IP/device to 30, does anyone have any knowledge of a work around for this situation. Ideally, are there any plugins which limit sessions based on username and not IP addresses?
]]>Less than 24 hrs after starting my new site, it told me wp-bouncer needed updating. I tried to update and it told me “This plugin requires a valid PMPro Plus license key to update.” I would not have wasted my time or yours if it had said this yesterday and I question why was it ok to install yesterday but not update today?
]]>Hello,
does it support wordpress MU sites?
Thanks.
Alex
]]>Hi,
I’m debugging login issues and found an error in our logs for WP Bouncer:
[05-May-2017 13:52:46 UTC] PHP Notice: Undefined variable: ub in /home/gozen/public_html/wp-content/plugins/wp-bouncer/wp-bouncer.php on line 117
[05-May-2017 13:52:46 UTC] PHP Notice: Undefined variable: ub in /home/gozen/public_html/wp-content/plugins/wp-bouncer/wp-bouncer.php on line 129
Any ideas what’s causing this?
]]>Does this plugin work with WordPress Multisite? Or does anybody know of a plugin that works with Multisite that I can limit the amount of concurrent connections per user.
]]>The plugin ends the other concurrent sessions but it does not display a message to the user. Can someone help with this?
I am using the latest version.
]]>Hello,
Is it possible to add some extra settings? Many users have a regular pc, an ipad, a phone and so on, and not all have same ip.
It would be nice if you can limit for example 4 devices at a time on same user account.
cheers
Robin
]]>I installed & activated the plugin. Opened Chrome incognito, logged in to WP again, and neither session was logged out. Wanted to see if I missed a necessary setup step?
]]>A great feature would be to customize the number of concurrent logins allowed by user ID in a filter, similar to how this plugin does it.
That way customers in membership sites could pay for multiple seats, for example.
]]>Hi!
Great plugin and it works really well!
I’m just wondering if it’s possible to remove the auto logout function? At the moment, if a user tries to login outside of the limit, everyone is logged out. I’d like to have it so that the new user receives a warning but the existing sessions stay logged in.
This would require the existing user to log out so a new user can login.
Hopefully that makes sense!
]]>Hello,
You apply the wp_bouncer_redirect_url filter in your construct. Since plugins load before the theme function it will never be a valid filter to apply.
To fix this you can change line 56, which reads:
$this->redirect = apply_filters(‘wp_bouncer_redirect_url’, esc_url_raw( plugin_dir_url( __FILE__ ) . ‘login-warning.php’ ));
to:
$this->redirect = esc_url_raw( plugin_dir_url( __FILE__ ) . ‘login-warning.php’ );
and line 161, which reads:
wp_redirect( $this->redirect );
to:
wp_redirect( apply_filters(‘wp_bouncer_redirect_url’,$this->redirect) );
This will apply the filter only when the redirect needs to be called.
For the time being I’ve directly modified the plugin, but it would be excellent if we could get the live one to properly apply the filters.
Thanks!
]]>I would be nice to have the option to redirect the exit user to a customized page.
Nevertheless at least we should be able to translated to other languages.
Can you help?
Is it possible to allow certain roles to have a certain number of simultaneous logins?
For instance, regular role (customer) has the default single login, but another role (groupaccount) allows 10 simultaneous logins?
]]>I have used this software and it’s great but can I allow 2 simultaneous logins with WP Bouncer?
Many thanks in advance.
]]>