Session duration problem
Hi!
There is annoying problem with session duration in WackoWiki 5.5.5 - if duration of page editing is pretty long then results of editing are not saved, the banner "Welcome back, User" appears on the top and content of the page is as before editing. Session duration in the user profile is a month. By default editing duration without results saving (EDWORS) is about a half of hour.
I changed $cf_gc_maxlifetime and $cf_max_idle in class/session.php from 1440 to 43200 but it increased EDWORS to about one hour, not 12 hours. How can I make EDWORS and the banner "Welcome back, User" appearing equal to session duration in the user profile?
Comments
Log in or create an account to post a comment.
So why does the server choose to arbitrarily forget about you in an hour?
The issue is known and multiple times mentioned in the TODO list. The main issue here is, how we retain the POST data after a forced logout (session timeout) with or without a following auto-login. There are some possible options, but I have to look into the issue more in detail for a workaround.
Changing session duration
For the meantime you can of course try to raise the session related time values. Guess you should add a factor to the following :
* FACTOR (12*60*60)
class/session.php
I did not test if it works, does it?
Re: Session duration problem
A first ajax heartbeat patch is available for testing: