Posted on: 07/07/05 07:32pm
By: RichardTowler
I would like to add an always logged in, tick box to the user page, and I was wondering if anyone knew if this is possible, and how it could be achieved, thanks.
Always Logged In?
Posted on: 07/08/05 02:26am
By: Dirk
Earlier versions of Geeklog had an option to stay logged in for a year. It has been removed for security considerations, though.
Basically, what you would have to do is to set the expiry date for the 'password' cookie to, say, a few years in the future (you can't have a cookie that never expires). See usersettings.php for how this works at the moment (search for "setcookie").
bye, Dirk
Always Logged In?
Posted on: 07/08/05 02:45pm
By: RichardTowler
thanks
so I'm guessing
setcookie ($_CONF['cookie_theme'], $A['theme'], time() + 31536000,
if i edit this for example to + 5184000 it would change the 1 month logged in time, to 2 months? as I'm guessing the options work off this one number and just divide it to fix the specific time frames.
So I would basically need to edit the user selections, any hints on where that can be found (the block/drop down menu)
thanks
Always Logged In?
Posted on: 07/08/05 02:55pm
By: Dirk
[QUOTE BY= RichardTowler] So I would basically need to edit the user selections, any hints on where that can be found (the block/drop down menu)[/QUOTE]
Those are stored in the database, table gl_cookiecodes.
bye, Dirk
Always Logged In?
Posted on: 07/08/05 03:15pm
By: RichardTowler
thank you, think its done
Always Logged In?
Posted on: 09/07/05 04:53am
By: Anonymous (Zim)
I would also like to give my users the ability to stay logged in (but with a 24 hour timer). I just can't seem to figure out how, having tried all of the above mentioned.
I'm quite happy to just make it the default policy, but what do I change to make the cookie expiration date today plus 86400 seconds? I'm running version 1.3.11sr1.
Always Logged In?
Posted on: 09/08/05 03:15pm
By: Anonymous (Zim)
Even just a tiny hint?
Always Logged In?
Posted on: 09/10/05 05:03pm
By: Dirk
[QUOTE BY= Zim] I would also like to give my users the ability to stay logged in (but with a 24 hour timer).[/QUOTE]
The default is set in config.php:
$_CONF['default_perm_cookie_timeout'] = 28800;
bye, Dirk