Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Thu Mar 28, 2024 11:34 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 22, 2009 10:37 pm 
Offline
Newbie

Joined: Mon Nov 28, 2005 11:17 am
Posts: 12
Greetings,

I would like to adjust the timeout value that automatically logs a user out after a specified amount of time to make the timeout a bit longer. Is there a value I can adjust somewhere in a PHP file to control this? I see some timeout code in include_ldap_login.php, but it's commented out. I'm not a PHP guru so I don't know where else to look in the code.

I'm using OA SVN 1154 with LDAP auth against AD.

Thanks!

Kevin


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 23, 2013 12:53 am 
Offline
Newbie

Joined: Tue Sep 01, 2009 6:27 am
Posts: 9
I second that. The time is just too short for the way I work.


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 23, 2013 3:15 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Since the code is commented out I suspect there is no timeout other than the default set in the php.ini file. The default is 0 which means "until the browser is closed." See [url=http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime]session.cookie_lifetime[/url]. Not a php expert either so this may not be an answer.


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 23, 2013 9:09 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
If you use Open-AudIT v2 and not the original Open-AudIT, you can set the session variables in /config/config.php at around line 240 (as below).

[code]/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'session_cookie_name' = the name you want for the cookie
| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
| 'session_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'oa_user_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;[/code]

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group