Page 1 of 1

Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 1:41 am
by jhnmdahl
I've had several complaints (and noticed myself on my iphone) that clicking the box to stay logged in doesn't result in staying logged in my PHPBB forum on mobile devices, but it seems to work on desktops. My iphone is set to receive cookies and works ok with staying logged in to other sites, but I'm hoping someone can point me in the right direction.

Details are:
site is www.cobaltchat.com
Running phone 3.2.1, php 7
host is bluehost.com

cookie settings are:
domain - www.cobaltchat.com
cookie name - phpbb3_nwucx
cookie path - /
cookie secure and notice are disabled

Thanks in advance for your ideas,

John

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 5:05 am
by rxu
You could try if setting cookie domain to .cobaltchat.com would help (leading dot matters).

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 11:46 am
by Mick
FWIW - I’ve never been able to stay logged in on iOS phone, pad and desktop (in several different locations and OS’s) work fine. I’ve never worried about it though as I don’t like using my phone for BB’s, they’re much better suited to making calls and texting IMHO.

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 11:52 am
by david63
Mick wrote:
Thu Oct 12, 2017 11:46 am
they’re much better suited to making calls and texting IMHO.
You're such a Luddite :lol: :lol: :lol: :lol:

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 11:55 am
by Mick
Well, I am from Nottingham :D

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 3:22 pm
by stevemaury
I have no problem staying logged in on an Android phone (Galaxy). Your domain setting should be .cobalt.com

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 4:07 pm
by jhnmdahl
Changed the domain setting to .cobaltchat.com about 10am central this morning - I'll report back on whether my members have fewer problems.

I thought I had set the cookie domain correctly based on the article posted at:
https://www.phpbb.com/support/docs/en/3 ... -settings/

Thanks for the help,

John

Re: Users not staying logged in on ios/android

Posted: Thu Oct 12, 2017 4:52 pm
by stevemaury
You have to now change the cookie name. Just append a digit to it.

Re: Users not staying logged in on ios/android

Posted: Fri Oct 13, 2017 2:20 am
by jhnmdahl
Yep, changed the cookie name, purged the cache, and cleared all current sessions.

John

Re: Users not staying logged in on ios/android

Posted: Sat Oct 14, 2017 3:31 pm
by jhnmdahl
I changed the cookie settings from www.cobaltchat.com to .cobaltchat.com, which is contrary to the guidance given in the cookie configuration article linked above, so hopefully this helps others too.

Thanks again,

John

Re: Users not staying logged in on ios/android

Posted: Thu Mar 01, 2018 7:05 pm
by jhnmdahl
OK, this still doesn't work for longer than a day, so I opened a bug report https://tracker.phpbb.com/browse/PHPBB3-15574 which was promptly closed implying it was a user error rather than a coding problem.

It's also relevant that the "remember me" works fine on desktop browsers (firefox, internet explorer), but not on iphones (and reportedly on some android devices) - the cookie appears to work for some browsers but not others.

Anybody have any insight on how to get this to work?

Edit - the bug has been reopened as an iphone/safari issue, which is the only place I'm able to reproduce the problem myself. I'll report a resolution here if found, whether it's a board configuration or coding issue.