Web Paint-by-Number Forum
Topic #435: Help with re-logging in
By Jay Bee (jaybee)

#1: Jay Bee (jaybee) on Oct 4, 2013

I've never posted in the forum, so I may need to post in another place. I love this site and have used it for years. Lately, when I leave for a while and come back to a puzzle, I get a popup box saying I need to sign in again, but when I try to fill in the box, it only receives some of the digits I type, so no matter what I do, I can't sign in and can't finish my puzzle. The only solution is to refresh the page and the solution I had done to that point is gone. Can anyone give me direction about how to fix this or where to post my question for help?
#2: Jan Wolter (jan) on Oct 4, 2013
Well, you're in the right place.

So, if I understand correctly, you are leaving a window open on your computer for a long time. Long enough for your session to expire. When you try to save your puzzle, a pop-up box appears asking you to re-log in, but some characters you type into the box don't appear, so you can't.

A work-around for this is to click "Remember Me" when you log in. Then your session never expires. However, this may not be safe to do on a public computer. Not that leaving a window open forever makes sense on such a computer either.

But I ought to figure out how to fix this. Since I always do "Remember Me" I haven't seen this, and had all but forgotten that I ever put in code to try to recover your session if your session times out while solving a puzzle. Sounds like software rot has killed that old code. I'm guessing that any character that is a keyboard shortcut for the puzzle is being grabbed by the Javascript and being interpreted as a puzzle command instead of appearing in the re-login window, but I'll have to do some experimentation to test this out.

Thanks for the bug report, in any case.
#3: Jay Bee (jaybee) on Oct 6, 2013
Thank you for the response. I do love your site! I'll work on the Remember Me option. Thanks again!!!
#4: Jan Wolter (jan) on Oct 7, 2013
OK, I think I've fixed this bug. It was basically doing what I thought it might be doing, but hiding behind that bug was another, and hiding behind that bug was another. In short the whole "re-login when your session expires during a puzzle solve" code was pretty thoroughly broken. I hope it's now thoroughly fixed. It's not something needed often, but it's needed badly when it is needed.

Goto next topic

You must register and log in to be able to participate in this discussion.