Creating Multiple same sessions on Login
-
Hi there,
Has there been any reports on wp-members creating 2 session instance at a time when a user logs in each time?
I was reported of an issue regarding concurrent login limit not working properly when using Inactive Logout(plugin). So, i took a deeper look and found that wp-member is creating 2 session instance per login.
To verify this further – i installed another plugin as well called “Sessions(plugin)” and found same issue there as well. (*Deactivated any other plugins that might have sign-in hook calls)
Shortcode i used: [wpmem_form login]
So, taking a deeper look again; into the code now. Found that there was a function after user signon trigger. Not sure what this does but this seems to be the culprit.
// Make sure current user is set. wpmem_set_as_logged_in( $user->ID );
When above code is active 2 sessions are registered if a user signs in. So, just wanted to know if this an issue from wp-members?
- The topic ‘Creating Multiple same sessions on Login’ is closed to new replies.