Be able to set the users' web session timeout

Anything that you think should be in Cacti.

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
GLR
Cacti User
Posts: 55
Joined: Mon Jul 21, 2008 5:45 am
Location: Paris suburbs, France
Contact:

Be able to set the users' web session timeout

#1 Post by GLR » Fri Jan 06, 2012 12:01 pm

As far as I understand the code, the authenticated users' web session timeout is set as hard coded value to 3600 sec.
We would like to be able to customize this value in the Cacti settings (or at least in the config file) in order to avoid getting too much annoying "Access denied" messages.
(Why an hard coded value !?)

Thanks.
Cacti 0.8.8b + spine 0.8.8b
on Debian / Apache 2.2 / PHP 5.2 / MySQL 5.0

noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Be able to set the users' web session timeout

#2 Post by noname » Wed Jan 11, 2012 8:45 pm

GLR wrote:As far as I understand the code, the authenticated users' web session timeout is set as hard coded value to 3600 sec.
We would like to be able to customize this value in the Cacti settings (or at least in the config file) in order to avoid getting too much annoying "Access denied" messages.
(Why an hard coded value !?)
If you mentioned about this line, it's not for timeout settings.
setcookie(session_name(),"",time() - 3600,"/");
That's usual method for deleting cookie.
- http://www.php.net/manual/en/function.setcookie.php

Default session timeout is determined in your php.ini. See the following settings:
- session.cookie_lifetime
- session.gc_maxlifetime
- session.gc_probability
- session.gc_divisor

Post Reply