FIX: Sessions expiring after 2-3 hours in 1.8.5 and 1.9_minimal no matter what time you set.

7 views
Skip to first unread message

Kashgarinn

unread,
Oct 25, 2010, 7:19:36 AM10/25/10
to ccTiddly
For some reason the $tiddlyCfg['session_expire'] value changes
somewhere into 7200 no matter if it's 0 or something else. I don't
know where it does that, I tried searching for it, but haven't found
it yet.

The fix is to add:
$tiddlyCfg['session_expire'] = 259200; // 3 days...

- or whatever you want the time to be after the line:
$odata['session_token']= $pw;
in the function: function user_reset_session($un,$pw)
in the file: includes\user.php

So, just to be safe, add the line and have the same time as you have
in the config.php

I've yet to test what happens with this completely, so this is a very
rough fix, but should work as expected, i.e. you get the session
timeout you want.

K.
Reply all
Reply to author
Forward
0 new messages