[RCU] Session timeout not working as expected

James Yu Wang yuwang at cs.fsu.edu
Mon Nov 23 16:48:56 CET 2020


I believe it was installed in late 2015 or early 2016, but I agree, it's old. I just downloaded the latest source tar ball. Will upgrade it during our winter break.

James

-----Original Message-----
From: Reindl Harald <h.reindl at thelounge.net> 
Sent: Saturday, November 21, 2020 4:32 AM
To: James Yu Wang <yuwang at cs.fsu.edu>
Cc: Roundcube Users mailing list <users at lists.roundcube.net>; javier.miguel at gmail.com
Subject: Re: [RCU] Session timeout not working as expected

what about get a recent roundcube and a clean setup?

[root at testserver:~]$ rpm -q roundcubemail roundcubemail-1.4.9-2.fc32.20201002.rh.noarch

that change was done years ago, just download the roundcube tarball: 
https://github.com/roundcube/roundcubemail/blob/master/config/defaults.inc.php

Copyright (C) 2005-2013 - 7 years old man!

Am 21.11.20 um 04:16 schrieb James Wang:
> Professor Harald, my roundcubemail's defaults.inc.php does not have 
> that warning line.
> 
> Here is my defaults.inc.php:
> 
> <?php
> 
> /*
> 
> +-----------------------------------------------------------------------+
>   | Main configuration file with default settings |
>   | |
>   | This file is part of the Roundcube Webmail client |
>   | Copyright (C) 2005-2013, The Roundcube Dev Team |
>   | |
>   | Licensed under the GNU General Public License version 3 or |
>   | any later version with exceptions for skins & plugins. |
>   | See the README file for a full license statement. |
> 
> +-----------------------------------------------------------------------+
> */
> 
> $config = array();
> 
> // ----------------------------------
> // SQL DATABASE
> // ----------------------------------
> 
> Since the session timeout I changed IS my site's default, there would 
> be the right place to put in, right?
> 
> Maybe my roundcube is an old version. I will check the latest one later.
> 
> So why Mr. Rodríguez's session settings in config.inc.php not working?
> 
> 
> Best,
> 
> James
> 
> 
> 
> On 2020-11-13 08:52, Reindl Harald wrote:
>> Am 13.11.20 um 14:43 schrieb James Yu Wang:
>>> Change it in the file: defaults.inc.php
>>
>> stop giving bullshit instructions making it in list-archives and so 
>> will be found years later by poor souls
>>
>> "config.inc.php" is where you put your dirty fingers, 
>> "defaults.inc.php" is *distributed* and whatever exists there can be 
>> overwritten in "config.inc.php"
>>
>> for idiots it has even a comment on top:
>> // 
>> ---------------------------------------------------------------------
>> // WARNING: Do not edit this file! Copy configuration to config.inc.php.
>> // 
>> ---------------------------------------------------------------------
>>
>>> // Session lifetime in minutes
>>>
>>> // default -> $config['session_lifetime'] = 10;
>>>
>>> $config['session_lifetime'] = 20;
>>>
>>> James
>>>
>>> *From:*users-bounces at lists.roundcube.net
>>> <users-bounces at lists.roundcube.net> *On Behalf Of *Javier de Miguel 
>>> Rodríguez
>>> *Sent:* Friday, November 13, 2020 2:27 AM
>>> *To:* users at lists.roundcube.net
>>> *Subject:* [RCU] Session timeout not working as expected
>>>
>>> Hello
>>>
>>> I am running Roundcube 1.4.5 in Centos 7, apache 2.4.6, memcached
>>> 1.4.15 &  php 7.3.17. I want to set a session timeout in Roundcube, 
>>> an idle user should be kicked off after 20 minutes of inactivity.
>>>
>>> I have this setting in config.inc.php
>>>
>>> $config['session_lifetime'] = 20;
>>>
>>> In php.ini I have this relevant settings:
>>>
>>> session.gc_probability = 1
>>>
>>> session.gc_divisor = 1000
>>>
>>> session.gc_maxlifetime = 1200
>>>
>>> I have read several times doc & bug tracking reports of this feature 
>>> and this setting should work. Somebody can tell me what am I missing?


More information about the users mailing list