Session duration problem


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?


  1. 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.

    • WikiAdmin
    • 15.02.2019 15:19 edited
  2. 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)


    public $cf_nonce_lifetime	= 7200*FACTOR;
    public $cf_gc_maxlifetime	= 1440*FACTOR;
    public $cf_max_idle		= 1440*FACTOR;
    public $cf_max_session		= 7200*FACTOR;	// time to unconditionally destroy active session
    public $cf_regen_time		= 500;		// seconds between forced id regen
    public $cf_cache_expire		= 180*60;	// ttl for cached session pages in seconds

    I did not test if it works, does it?

    • WikiAdmin
    • 15.02.2019 15:21 edited