Calcudoku puzzle forum
https://www.calcudoku.org/forum/

"save for later" fails silently because session timed out
https://www.calcudoku.org/forum/viewtopic.php?f=18&t=425
Page 1 of 1

Author:  bram  [ Mon Mar 25, 2013 7:45 am ]
Post subject:  "save for later" fails silently because session timed out

Related issue: Timestamped confirmation appears to the right of "Save for later" button even though session has timed out, user is no longer logged in and numbers haven't actually been saved

While solving Saturday's 15x15 today (and making ample use of the possibility of entering guesses using the shift key) I clicked on the "Save for later" button several times and got the "Your solution last saved at [time]" message each time. When I finally finished the puzzle and it turned green, I got the "You are not logged in" message instead of the congratulations message, meaning that my session had timed out and I had been logged out automatically (even though the "Welcome back, bram!" message was still displayed at the top of the page).

Not wanting to take any risks, I took a screenshot of the solved (green) puzzle before logging back in, which turned out to be a good idea because the saved numbers had all disappeared when I returned to it. A user indicated by a Danish flag followed by a question mark rather than a username appeared beside the puzzle as the last puzzler to have solved it (and in the "news ticker" of recent solvers near the bottom of the page). The puzzle wasn't included in my history. After I had re-entered the numbers from the screenshot, I got the congratulations message, my username appeared with the flag, and the puzzle turned up in my history.

I am in the habit of clicking on the "Save for later" button for the last time when there is only one empty cell left in the entire puzzle. Even then I got the confirmation message although the timeout/logout must have happened before then. I wonder if there is a way to make the user aware of the timeout, e.g. a pop-up message that informs the user in advance that their session will time out in 5 minutes and they should save their numbers for later? If not, maybe a message that the user has been logged out could appear in red after the "Save for later" button instead of the false confirmation message when a logged-out user clicks on it?

Author:  pnm  [ Mon Mar 25, 2013 11:32 am ]
Post subject:  Re: "save for later" fails silently because session timed ou

I moved this to a new topic because it's a separate issue, and not
restricted to the 15x15. Someone wrote to me about this a week or
so ago, after which I added some extra logging to try and find the problem.

In any case, a "Save for later" should refresh the session (!)

I'll keep you posted..

Patrick

update: when "Save for later" fails, it'll now say "Save error" instead of a timestamp

update 2: hopefully fixed something useful in the code that does the #!@# PHP session management, ideally
you won't be logged out ever again [blink]

update 3: the previous fix worked, but broke login for Safari only (!?), so I'll have
find a different solution [cursing]

update 4: the "session cookie" is now refreshed every time you save your entered numbers,
this should help

Author:  pharosian  [ Tue Mar 26, 2013 8:46 am ]
Post subject:  Re: "save for later" fails silently because session timed ou

I really hope this issue is fixed. I also lost work on a 15x15 today, though the one I was working on was from 9 Mar.

I use Safari, so maybe I should switch to Chrome (and increase my IQ at the same time [flapper] )?

Author:  pnm  [ Tue Mar 26, 2013 10:46 am ]
Post subject:  Re: "save for later" fails silently because session timed ou

pharosian wrote:
I use Safari, so maybe I should switch to Chrome (and increase my IQ at the same time [flapper] )?

I don't think this one is browser related, so no reason to switch

(unless you want to drag down the average Chrome user IQ of course :-) )

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/