Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: [FIXED] Stay logged in option for Steam login
Guppy 7 Dec 2016
If at all possible I'd appreciate a 'stay logged in' option when using the steam login so you can return later to the site and not need to login again or risk getting signed out mid post.

I assume you are storing a browser fingerprint and using that to check for login status, extending that to the openid logins would be greatly appreciated <3
Liam Dawe 8 Dec 2016
The issue has two parts I need to think on:
- I can't send the data of a "stay logged in" checkbox to Steam login
- Some people may not want a cookie auto-dumped on them to stay logged in with Steam

Thoughts?
Guppy 9 Dec 2016
If you need a cookie to do it ( rather than a pure browser fingerprint stored in the db ) you could always make it a setting that you can enable in the Control panel. ( and so check the users preferences as (s)he logs in and set a cookie if desired )

Though to be fair you already set 5 cookies;

PHPSESSID
__cfduid ( *http* )
gol-device
request_stay
steamID

so one more properly isn't going to be an issue
Liam Dawe 10 Dec 2016
The problem with browser fingerprinting is that any small browser update will invalidate it, which is why everyone tends to use cookies (it's what cookies were designed to help with after all).

I suppose a good way around it would be a setting in the UserCP.

I might just auto-do it, and see if anyone kicks up a fuss. I doubt anyone will, since no one has ever said anything about the cookies we set now and people who get pissy about it probably block cookies themselves anyway...
Guppy 30 Jan 2017
Did you ever get round to look at this?
Liam Dawe 30 Jan 2017
I actually just took another look at the code, and it now works.

I've changed the way it work to essentially submit the form as normal through POST, so that we can capture the tickbox for staying logged in. Then that redirects to the Steam login section, seems to work now.
Guppy 30 Jan 2017
Glorious \o/
Guppy 3 Feb 2017
Have you changed anything? - I've been logged out twice today
Liam Dawe 3 Feb 2017
Quoting: GuppyHave you changed anything? - I've been logged out twice today
Haven't touched it since it was fixed.

Is this on the exact same device?
Guppy 3 Feb 2017
Quoting: liamdawe
Quoting: GuppyHave you changed anything? - I've been logged out twice today
Haven't touched it since it was fixed.

Is this on the exact same device?
My work desktop yeah
Guppy 3 Feb 2017
I think I've worked out why - have you changed your cookie domain recently?

External Media: You need to be logged in to view this.


I've cleared them out and now only have one for ".gamingonlinux.com"

lets see if that does the trick :)
Guppy 3 Feb 2017
Sadly that wasn't it :(

guess I'll try and see if my gol-device value changes
Guppy 3 Feb 2017
The following cookies all remain the same, regardless of login state;

gol-device
request_stay
steamID
gol_stay
gol_session

So I do not think it's a client side issue
Guppy 3 Feb 2017
By contrast visiting from my phone I am still logged in (haven't visited the page since last nigh with it)
Liam Dawe 4 Feb 2017
You had a ton of duplicated logins, so I have removed all your saved sessions (will require a new login on all devices). From your next login it should now work correctly.

Sorry about that, but it's likely left-over from when I updated our cookie handling to use the same domain across all logins (to prevent issues like this in future).

Edit: Been testing it myself all day, haven't been logged out once. So I think that was the issue.
Guppy 10 Feb 2017
Quoting: liamdaweYou had a ton of duplicated logins, so I have removed all your saved sessions (will require a new login on all devices). From your next login it should now work correctly.

Sorry about that, but it's likely left-over from when I updated our cookie handling to use the same domain across all logins (to prevent issues like this in future).

Edit: Been testing it myself all day, haven't been logged out once. So I think that was the issue.
Never got back to you on this one ( I've been massive computer problems ) but yeah it seems to work now
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register