Be able to set the users' web session timeout

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
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

Post by GLR »

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

Post by noname »

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

Who is online

Users browsing this forum: No registered users and 1 guest