November 23, 2011 at 11:32 pm #4846jessesmithproductionsSpectator
I logged into my site, then closed my browser and left for several hours. When I came back and clicked Login, I got a display telling me I was still logged in. I couldn’t get to my content without logging out and then logging in again, because I don’t have a direct menu link to the premium pages – they are redirects for each specific membership level after login, because they’re all different.
I would like to prevent this from happening to my members. Is there any way to force a logout after a set time period, or upon browser window or browser closing?
Thanks!November 23, 2011 at 11:58 pm #38821PeterMember
There’s nothing specifically in eMember you can do but there are things which are browser specific that people can set which can cause log out (but this is really beyond your control I guess).
Read this post for more info:November 24, 2011 at 4:03 pm #38822jessesmithproductionsSpectator
Okay. My bank’s website forces a logout after ten minutes of no user input … I was hoping I could do that. I suppose that’s being handled by the server somehow.November 24, 2011 at 11:26 pm #38823
When you have full control over your server like your bank does you can do lots of cool things. For example: you can make your PHP Session to reset every 10 minutes (which will force a logout as all the temporary session data will get lost). You can specify how long your PHP Session live in your server configuration. The same trick can be applied to site cookie too.
http://www.your-site.com/?event=logoutDecember 3, 2011 at 3:35 am #38824
We just added an option in the membership plugin that can be used to force your members to re-authenticate after XX minutes of browsing. To use this option specify the minute value in the “Logout the Member After XX Minutes” field of eMember settings.April 2, 2012 at 3:12 pm #38825v1ktorMember
Just wanted to follow up on this. Not sure if I’m the only one, but it seems that when a user is logged out after XX minutes of inactivity, they are NOT logged out of WordPress.
I noticed this because my navigation changes from visitor to logged in user by using is_user_logged_in(). I can see logged in user’s navigation but the protected pages ask me to login after logged out due to inactivity.
The other issue I noticed, is the logout link now brings me to WP login page for some reason.
Am I the only one with that issue?April 3, 2012 at 3:48 am #38826
We were using a WordPress function for the redirection which is not behaving optimally on all sites. We have updated the plugin with a different method of redirection which should work better. Please load a fresh build of the eMember plugin which should address the two issues you mentioned:
- You must be logged in to reply to this topic.