Tips and Tricks HQ Support Portal › Forums › WP eMember › How to keep a member logged in until logout is cliked or cookies deleted
Tagged: cookie expire, remember me, timeout, wp membership
- This topic has 31 replies, 5 voices, and was last updated 7 years, 8 months ago by jharries.
-
AuthorPosts
-
October 3, 2013 at 6:30 am #57953avd23Spectator
Perhaps abhishek1234321 found a solution?
October 4, 2013 at 12:07 am #57954avd23SpectatorI have sent out a questionnaire to the members who have this problem. I will see what consistencies there are. It seems at this point that a lot of them are using password remembering tools like the one that comes with Firefox and others are using Lastpass. Perhaps once I see the similarities then you can look into this further if you think it warrants it. As I say, only one person has complained to me and all the rest seem to feel that 30 minutes is not bad at all. I will let you know what I uncover if anything.
October 4, 2013 at 12:54 am #57955adminKeymasterPlease gather some more info from this one customer with the issue and that will help me do more investigation.
October 7, 2013 at 1:35 pm #57956abhishek1234321MemberNo, I couldn’t get this solved yet
October 7, 2013 at 10:54 pm #57957adminKeymasterWhen I reply to your email and ask for more info, please reply back to my email with the info so I can continue troubleshooting your site.
October 8, 2013 at 8:34 am #57958abhishek1234321MemberSorry I didn’t check that. I’ve replied now
October 15, 2013 at 2:05 am #57959avd23SpectatorTo update you I have done a variety of tests and have now resolved the issue to the point where members can stay on line without constantly being asked to relogin. The culprit was the time to logout which I had set to 90 minutes. The moment I turned it off, almost everyone replied they had no further issues. When I set the timer to various minutes the issued reappeared. Once again I turned it off and no further issues. I then finally kept increasing the time out and now set at 360 minutes or 6 hours and no one is experiencing the login request after a few minutes. I have no idea what the issue is but 360 minutes is fine for now. The ISP limitations setting and the simultaneous logins settings were not an issue.
I hope this helps you with this issue. My members are extremely happy to not have to keep logging back in every so many minutes and I am glad to have resolved the problem.
Thanks for a great plug-in.
January 23, 2017 at 11:15 am #57960jharriesMemberGood Morning,
Generally WP Emember is working great, but the most frequent complaint I get from members, is that when they tick the Remember Me box it does not last as long as they would like, particularly on phones and iPads. Seems like it last a day or so on a computer, but only hours on a tablet.
Could you please advise how long the cookie is set to last and if there is anything I can do to make it longer?
I have all of the login options that could mess this up set to off now, although I did have the max number of IP addresses set to 3. Could that be a problem?
Thanks
John
January 23, 2017 at 1:44 pm #57961wzpModerator…the most frequent complaint I get from members, is that when they tick the Remember Me box it does not last as long as they would like, particularly on phones and iPads. Seems like it last a day or so on a computer, but only hours on a tablet.
For mobile devices, IP addresses are subject to being changed, whenever the user moves from one “cell” to another. Network connection timeouts will also cause device IP addresses to change. When a new connection is later established; WordPress & eMember will think the login is coming from an a different device and will “err on the side of safety.” For fixed computers, unless the computer is using a static IP address, the same thing can occur; on a slower basis, based on local DHCP and ISP timeout criteria.
January 23, 2017 at 7:44 pm #57962jharriesMemberHi Wzp,
Thanks for coming up so quickly. Please help me to understand this so I can explain it to my members. I’m getting a lot of complaints and everyone says our system is much worse than most systems that require a login, in this regard.
I thought that the remember me feature was based on a cookie, surely that won’t change with IP address?
In fact I tested with my iPhone. First I logged in at home on Wifi, then surfed the site on cell, but it still remembered me.
Could this be because I turned the maximum number of IP addresses allowed feature off?
Thanks
John
January 23, 2017 at 8:25 pm #57963wzpModeratorCould this be because I turned the maximum number of IP addresses allowed feature off?
If you are supporting mobile devices, do not use “Login Restriction by IP Address” and “Disable Simultaneous Member Login” because of the IP address changes I described for mobile devices.
January 25, 2017 at 7:12 pm #57964jharriesMemberOK, that works. I understood not to use “Disable Simultaneous Login” and didn’t, but I was using maximum number of IP addresses in a day set to 3.
Thanks
February 2, 2017 at 9:42 pm #57965jharriesMemberHi Again,
Sorry to keep bugging you on this one, but I’m still getting push back from my members about getting logged off even if they have clicked remember me. (That said, much better since I turned off the options as noted above.)
Having done that, I had a look at the login cookie that WP eMember writes out and it seems that the expire time on that is three days. Assuming I have that right, is there any way I can increase that time to say a month or so. I think this would go a long way to making my members happier.
If there is not a way, I would be interested in paying to have this option added.
One other thought: I assume that even if someone was logged in when their membership expired, they would still be locked out of protected content and sent to renewal. Do I have that right?
Thanks
John
February 3, 2017 at 12:01 am #57966adminKeymasterWhen the remember me option is checked, the cookie is set for 14 days. So I don’t think that would be an issue.
Is there a particular device type (like a mobile device) where this issue happens more? Maybe that device is auto clearing the cookie. Have you asked the users (who are having this issue) some questions to try and see if there is a pattern?
February 3, 2017 at 3:30 pm #57967jharriesMemberHi, Thanks for coming up. The problem does seem worse on mobile, you are right. And yes we have questioned users. Sometimes it is as you say because they have cleared cookies etc. Hard to pin down, so we have been testing in house with our own devices. The logoffs seem to happen at about three days, but it’s hard to nail it down to an exact time or action that triggers it. It does not seem to matter whether or not we are outside our office using cell data.
What I can say is that our WP eMember seems to be less persistent than many other systems I use. The all time champ for login persistence seems to be this site: [https://luminous-landscape.com/login/?redirect_to=https%3A%2F%2Fluminous-landscape.com%2F]
On which my ipad stays logged in for months at a time.
Also, my WP admin login is much more persistent.
I have sent you a couple of screen shots via email of the relevant cookies that might help.
Thanks
John
-
AuthorPosts
- You must be logged in to reply to this topic.