You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-08-09 06:17:24

sankan101
Member
Registered: 2011-04-06
Posts: 24

Time out in GLPI

Hi There,

GLPI automatically logs out user after some time of inactivity.  I would like to extended it to max time.  Could anyone please tell me where can I find that in code or in interface.

Thanks,
S


GLPI Version 0.78.3
Operating Systems : CentOS based on Redhat
Software: Apache/2.2.3 (CentOS) GLPI Authentication through LDAP Windows AD
MySQL: 5.0.77 (root@localhost/glpi)

Offline

#2 2012-08-09 08:15:19

tomolimo
Member
From: Grenoble, France
Registered: 2009-05-12
Posts: 515

Re: Time out in GLPI

Hello,
You have to touch several setups...
in httpd.conf (of Apache):

TimeOut 14400
KeepAlive On
KeepAliveTimeout 28800
MaxKeepAliveRequests 1000

in php.ini:

[Session]
...
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID

; Initialize session on request startup.
; http://php.net/session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://php.net/session.cookie-lifetime
session.cookie_lifetime = 14400

session.gc_probability = 1
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 14400

session.cache_limiter = nocache

; Document expires after n seconds (TOM).
; http://php.net/session.cache-expire
session.cache_expire = 14400

After this, restart Apache and php.
then you should have valid sessions for 4 hours, even if client browser is closed and restarted
regards,
Tomolimo


GLPI 9.2.4 - PHP 7.2.13 x64 / ProcessMaker 3.3.0-community-RE-1.7 - PHP 7.1.24 x64 / Windows 2012 x64 / IIS 8.5 / MySQL 5.7.17 x64
Worldwide: >12316 PC, >9400 users (16 languages, >11 timezones), >360k tickets, >3600 entities, >4200 groups
Raynet is ARaymond (http://www.araymond.com) IT service management

Offline

Board footer

Powered by FluxBB