View unanswered posts | View active topics It is currently Fri Dec 15, 2017 6:12 am



← Back to the Calcudoku puzzle page




Reply to topic  [ 4 posts ] 
 "save for later" fails silently because session timed out 
Author Message

Posted on: Mon Mar 25, 2013 7:45 am




Posts: 193
Joined: Tue May 24, 2011 4:55 pm
Post "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?


Profile
User avatar

Posted on: Mon Mar 25, 2013 11:32 am




Posts: 2215
Joined: Thu May 12, 2011 11:58 pm
Post 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


Profile

Posted on: Tue Mar 26, 2013 8:46 am




Posts: 116
Joined: Sat May 14, 2011 3:18 am
Post 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] )?


Profile
User avatar

Posted on: Tue Mar 26, 2013 10:46 am




Posts: 2215
Joined: Thu May 12, 2011 11:58 pm
Post 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 :-) )


Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
All forum contents © Patrick Min, and by the post authors.

Forum software phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.