Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:32 pm EST
Geeklog Forums
Cookie setting for geeklog 1.3
Joel Goldstick
Anonymous
We are using Geeklog 1.3. Recently we removed a bunch of accounts, but from the google analytics we have, it looks like people are still using the system. I am guessing they never logged out. This is my config.sys:
$_CONF['cookie_ip'] = 0;
$_CONF['default_perm_cookie_timeout'] = 28800;
$_CONF['default_perm_cookie_timeout'] = 0; //jcg 4/12/2011 so users can't stay logged in forever
$_CONF['session_cookie_timeout'] = 7200;
$_CONF['cookie_path'] = '/';
$_CONF['cookiedomain'] = ''; // e.g. '.example.com'
$_CONF['cookiesecure'] = 0;
I logged in yesterday and I am still logged in with my cookie expiration of: Fri, 13 May 2011 17:51:02 GMT
So, how can I set so users are logged out automatically after say 4 hours.
$_CONF['cookie_ip'] = 0;
$_CONF['default_perm_cookie_timeout'] = 28800;
$_CONF['default_perm_cookie_timeout'] = 0; //jcg 4/12/2011 so users can't stay logged in forever
$_CONF['session_cookie_timeout'] = 7200;
$_CONF['cookie_path'] = '/';
$_CONF['cookiedomain'] = ''; // e.g. '.example.com'
$_CONF['cookiesecure'] = 0;
I logged in yesterday and I am still logged in with my cookie expiration of: Fri, 13 May 2011 17:51:02 GMT
So, how can I set so users are logged out automatically after say 4 hours.
11
12
Quote
Status: offline
Roccivic
Forum User
Moderator
Registered: 05/19/10
Posts: 136
I'm not familiar with GL1.3, but you could try just remove the overriding line of code (the badly commented one that should read "can", not "can't" )
$_CONF['default_perm_cookie_timeout'] = 28800;
$_CONF['default_perm_cookie_timeout'] = 0; //jcg 4/12/2011 so users can't stay logged in forever
$_CONF['session_cookie_timeout'] = 7200;
$_CONF['cookie_path'] = '/';
$_CONF['cookiedomain'] = ''; // e.g. '.example.com'
$_CONF['cookiesecure'] = 0;
to
$_CONF['default_perm_cookie_timeout'] = 28800;
$_CONF['session_cookie_timeout'] = 7200;
$_CONF['cookie_path'] = '/';
$_CONF['cookiedomain'] = ''; // e.g. '.example.com'
$_CONF['cookiesecure'] = 0;
That's for 8 hours.
Text Formatted Code
$_CONF['cookie_ip'] = 0;$_CONF['default_perm_cookie_timeout'] = 28800;
$_CONF['default_perm_cookie_timeout'] = 0; //jcg 4/12/2011 so users can't stay logged in forever
$_CONF['session_cookie_timeout'] = 7200;
$_CONF['cookie_path'] = '/';
$_CONF['cookiedomain'] = ''; // e.g. '.example.com'
$_CONF['cookiesecure'] = 0;
to
Text Formatted Code
$_CONF['cookie_ip'] = 0;$_CONF['default_perm_cookie_timeout'] = 28800;
$_CONF['session_cookie_timeout'] = 7200;
$_CONF['cookie_path'] = '/';
$_CONF['cookiedomain'] = ''; // e.g. '.example.com'
$_CONF['cookiesecure'] = 0;
That's for 8 hours.
11
11
Quote
All times are EST. The time is now 01:32 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content