Announcement

#1 2021-06-26 11:56:34

carlnielsen
Member
2021-06-26
1

Session time out

Greetings,

I am totally new to piwigo. I have set it up and something I am finding is that if I am logged in, and not active on the site, it logs me out in very short time. I haven't determined precisely the timeout but it seems to be not much more than 60 seconds. Is this expected behaviour? Is it controllable?

Any assistance appreciated.

Thanks,
Carl


Piwigo 11.5.0 Check for upgrade
Operating system: Linux
PHP: 7.3.27-1~deb10u1 (Show info) [2021-06-26 11:54:44]
MySQL: 5.5.5-10.3.27-MariaDB-0+deb10u1 [2021-06-26 11:54:44]
Graphics Library: GD 2.2.5

Offline

 

#2 2021-06-26 16:47:28

Zentalquabula
Member
2014-05-10
208

Re: Session time out

Defined session length is 3600 seconds. But if you are logged in, a cookie is set and you should be remembered forever.

Probably your browser throwing you out.

Params: include/config_default.inc.ph

Code:

// session_use_cookies: specifies to use cookie to store
// the session id on client side
$conf['session_use_cookies'] = true;

// session_use_only_cookies: specifies to only use cookie to store
// the session id on client side
$conf['session_use_only_cookies'] = true;

// session_use_trans_sid: do not use transparent session id support
$conf['session_use_trans_sid'] = false;

// session_name: specifies the name of the session which is used as cookie name
$conf['session_name'] = 'pwg_id';

// session_save_handler: comment the line below
// to use file handler for sessions.
$conf['session_save_handler'] = 'db';

// authorize_remembering : permits user to stay logged for a long time. It
// creates a cookie on client side.
$conf['authorize_remembering'] = true;

// remember_me_name: specifies the name of the cookie used to stay logged
$conf['remember_me_name'] = 'pwg_remember';

// remember_me_length : time of validity for "remember me" cookies, in
// seconds.
$conf['remember_me_length'] = 5184000;

// session_length : time of validity for normal session, in seconds.
$conf['session_length'] = 3600;

// session_use_ip_address: avoid session hijacking by using a part of the IP
// address
$conf['session_use_ip_address'] = true;

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact