; Freecell.net Discussion Topic #18309
.net
All site revenue goes to charity

Subject: Blog: User authentication

Server time: Sun Sep 13 00:31
Date: Tue Aug 4 18:11:02 2026
User: MrFixit
Message:

This is super boring stuff but here goes.

In the early days of the Internet it was fine to have a nickname and a password and just store 'em in the database.

But it's a much more security-conscious world now and it's considered really bad boogie to store passwords "in the clear" in the database. Not because a silly game login might be hacked but because a lot of people use the same passwords for silly game logins as they use for important stuff like financial information.

Also, these days we try to protect against somebody making a bunch of different nicknames like we allowed back in the early days.  I asked repeatedly for folks to stop abusing our rather forgiving policy and to avoid the political nicknames. But it was not to be. Folks kept creating nicknames like HillarySucksThis and TrumpSucksThat.  So finally I gritted my teeth and started enforcing one nick per email.  There were still ways to get around this of course but it shut down the flow.

But then requiring a confirmation email was too much friction for silly games and folks were just going to other sites where they didn't have to do the whole registration procedure.

So then I created a sort of semi-anonymous user where the username was randomly generated so folks couldn't poke in political stuff and I made those not require any authentication.  That helped quite a bit with the folks who just wanted to play the game without a lot of hassle.

And then folks were asking for the undo version of the game to come back but that can't be allowed in a competitive environment because folks could just hit undo until they got back to where they wanted to try different route. And then they'd never have to lose.

All of this added up to a fair amount of work for silly games so finally I broke off the user authentication mess into a separate service and now all my games will use that service.  That way I implement all this nuisance stuff once and then can get back to the fun part of doing the games.

So as of today we're using my new service www.gexhub.net to handle the user auth portion of things. I'd already moved Jezzball and Winnable Solitaire over and it seemed like it was behaving pretty well. This handles all that stuff alluded to above and if I need to fix something or enhance something, all the games benefit.

I'll be watching the Discussion Board for issues as I'm sure I've missed a few little things. But hopefully this will allow me to start work on some other games.  Stay tuned...

MrFixit




Date: Tue Aug 4 19:35:30 2026
User: kangaroo
Message:

I actually read all of that!

It reminded me of Abraham Lincoln's famous quote that you cannot please all of the people all of the time!


Date: Tue Aug 4 19:42:20 2026
User: outskirts
Message:

It wasn't boring and it is informative. Not kissing up 🫄


Date: Tue Aug 4 20:17:19 2026
User: JackStraw
Message:

It reminded me of Abraham Lincoln's famous quote  If you don't have anything good to say about someone come sit by me.


Date: Tue Aug 4 22:46:14 2026
User: HopDiriDiriDattiriDittiriDom
Message:
Never mind...

Date: Thu Aug 6 05:07:17 2026
User: TNmountainman
Message:

Ok..........I had read all that at the time, too, but I'm quite confused about how to 'use' it.  So one must now log-in via that web site??  And one can't change nicks????  The details about the procedure is lacking, if I may say so.

[Edit:  I was able to accomplish the task, as noted below.]


Date: Thu Aug 6 05:10:00 2026
User: TNmountainman
Message:

Seems like I can't edit the above post to inform that I *was* able to change nicks, but it sure was a roundabout pathway.


Date: Thu Aug 6 14:16:36 2026
User: joeygray
Message:

I planned to never log out, thus solving any problems I might have with this.

But though I am still logged on here on the desktop, as I have been for who knows how many years, looks like I am not logged in on the tablet.   I've never logged out there either.  I wonder what's different.

I'm afraid to reload the client.  I might never be logged in again.


Date: Thu Aug 6 14:42:38 2026
User: joeygray
Message:

I know how it used to work.  There were two senses of 'logged in'.  One, the existence of an entry in the server session table corresponding to you, that session info including the low level internet stuff like your ip address and whatever else it needs to know what device your client was running on.  And second, the existence of the credentials cookie in the browser running your client.  That made it all invisible, because if there was any mismatch in the session table the server and client would undertake to use the cookie to re-match, and log you in in the first sense while in the second sense, and from the user's viewpoint, you were logged in all along.

And maybe it still does work that way.  Maybe something I did on my tablet caused the cookie to vanish and I just have to log in - with no cookie that means being prompted for username and password.  But it seems too coincidental that Denny fooled with logins and my cookie disappeared.  I'm hoping I don't have to respond to username/password screen every time I switch devices.  That would be a negative experience.


Date: Thu Aug 6 14:57:20 2026
User: AnonGritDid570
Message:

What happened to my original username? Which is ekg.


Date: Thu Aug 6 15:07:55 2026
User: joeygray
Message:

<Omitted>


Date: Thu Aug 6 15:40:34 2026
User: outskirts
Message:

Joeygray I play on a tablet and a couple times found myself logged out, even though I never log out. I didn't have to log back in. All I did was proceed on, and I was magically logged in.


Date: Thu Aug 6 17:44:18 2026
User: MrFixit
Message:

I using ā€œlocalstorageā€ now instead of a cookie. Subtly different. What browser?


Date: Thu Aug 6 18:51:41 2026
User: joeygray
Message:

Hmmm.  I'm logged in enough to play (and lose, thank you velly much) a game.  But the discussion page says I'm not logged in.  And the scores page doesn't pre-fill my user name.  I re-loaded both of those but it didn't fix it.

Guess I better try logging out and back in again.

...

Logging out didn't work, saying I was not logged in.  Odd.  I wonder how I was able to play?

...

But logging back in did work.  I guess.



Date: Thu Aug 6 19:34:46 2026
User: outskirts
Message:

Happened to me 2 days ago, but cleared up 

https://www.freecell.net/f/c/disctopic.html?code=18307&replies=3#idlast



Date: Thu Aug 6 20:57:49 2026
User: redberet
Message:

I use Edge. From your home page, hitting login or play will log me in automatically and send me to play page. If I go directly to discussion page I cannot post unless I do one of the above. If I want to change user, I need to do the same in order to log out. Logging out is the only way you see the id/password prompt on next login. 


Date: Thu Aug 6 22:07:38 2026
User: MrFixit
Message:

Huh. Maybe you have tracking prevention on "strict"?

Got to 3 dots upper right, scroll down to "Settings" -> Privacy -> Tracking prevention.

Any settings you've changed from default?

MrFixit



Date: Fri Aug 7 01:27:40 2026
User: redberet
Message:

Everything's default. This is with a clean browser. If I don't close, then I can close the tab and reopen and I'm still logged in. It's not a problem. 


Date: Fri Aug 7 15:44:10 2026
User: joeygray
Message:

Again my discussion board tab became convinced I wasn’t logged in, despite my not logging out (as I never do.)  Had to x out of that tab and then reload it from the main page.  What causes this?

Also, is there a point to making us hit ā€˜ok’ when the server must re-do the login?  If so I don’t see it.


Date: Sat Aug 8 07:50:45 2026
User: lisette1
Message:

Hi, what happened to outskirts also happened to me a couple times in the last week. I use safari or chrome. Usually safari. Didn’t report anything since I got in. But was odd. ā€œ I play on a tablet and a couple times found myself logged out, even though I never log out. I didn't have to log back in. All I did was proceed on, and I was magically logged in.ā€ 


Date: Sat Aug 8 17:43:57 2026
User: MrFixit
Message:

Yes, I think that is correct expected behavior. I require you to re-auth every day or so and that should do so automatically. It used to be 16 minutes, then I went to "infinite" and how I'm back at one day.

MrFixit


Date: Sun Aug 9 11:23:51 2026
User: joeygray
Message:

Not really the same.  Previously you could always stay logged in, 100% of the time.  The discussion board would always have you logged in with your username.  (It was better when you could actually type the username and password, but that I guess is a dead horse at this point.)  You didn't have to have a session to post, nor have a session to have your scores page auto-prefilled with your username.  And if you wanted to play, and the server decided for whatever reason to reauthorize you, it just did, without that extra 'ok' you have to hit now.  And btw, I often have to go through it twice to get back to playable state, don't know why.  Just another thing to get used to, that didn't need fixing.

All this to make sure everybody sees the MOTD every single day.  When it would have been better to have this behaviour only when you have a manual MOTD that everyone NEEDS to see. 

Edit:

BTW, I had high praise for when you first introduced 'infinite session' about a year ago now. Just in case you're thinking I'm nothing but whining. :)


Date: Sun Aug 9 12:21:09 2026
User: MrFixit
Message:

Yeah I thought about that having it only time out the session when there's a non-automated MOTF. Maybe I'll put it back to infinite. I only wanted my explicit messages to be seen when I was doing the user auth cutover but that seems to be behind us now.

MrFixit


Date: Sun Aug 9 14:07:10 2026
User: joeygray
Message:

Yay! 


Date: Sun Aug 9 14:16:19 2026
User: redberet
Message:

Do not attempt to adjust your horizontal, do not adjust your vertical.


Date: Sat Aug 15 01:19:39 2026
User: AnonSetKre686
Message:



Date: Sat Aug 15 01:39:39 2026
User: AnonBodCa792
Message:

I am unable to log in with my username  gerber  and current password. The username becomes underlined in red and the change password button does not respond.

I use an iPad. This happens both on Safari and chrome.

Do you have any suggestions on what the problem is and how I can fix it?


Date: Sat Aug 15 05:39:03 2026
User: MrFixit
Message:

Password reset is not working for you. I’m traveling so gimme a day or 2 to see what’s up. And let’s keep it on the other thread.

MrFixit


Post follow-up
Username: You must be logged in to post. Click Play to create a free account.
Message:
Editor by summernote.org

All content copyright ©2026 Freecell.net
By using our games you consent to our minimal use of cookies to maintain basic state.
Maintained by Dennis Cronin