[Vtigercrm-developers] how to extend session time in vtiger

Rubén A. Estrada Orozco rulotec1 at gmail.com
Thu Apr 7 15:37:15 GMT 2022


Thanks everyone, I copy pasted a summary of your valuable feedback in this
issue: https://code.vtiger.com/vtiger/vtigercrm/issues/946

Saludos

Rubén


On Thu, Apr 7, 2022 at 4:09 AM Sutharsan J <ajstharsan at gmail.com> wrote:

> Hi Ruben
>
> Here is summarized steps
>
> Increase *Session.gc_maxlifetime  *in config.inc.php
>
> increase below values as per your preference in
> *include/Webservices/SessionManager.php*
>
>    - $maxWebServiceSessionLifeSpan = 86400; //Max life span of a session
>    is a day and better to limit max 24hrs
>    -  $maxWebServiceSessionIdleTime = 1800; //Max life span session
>    should be kept alive after the last transaction.
>
> *In Shared hosting it is needed to change session.SavePath to avoid other
> global ini overwrite session*
>
> *Thanks*
> Sutharsan Jeganathan
>
> On Tue, Apr 5, 2022 at 3:08 PM Martin Allen <
> martin.allen at exe-squared.co.uk> wrote:
>
>> Also be aware that other factors can also affect session handling – e.g.
>> if sessions are stored in files, then we discovered an issue when using
>> Plesk managed Servers that means the max lifetime can only be 1 hr (as
>> Plesk automatically removes session files after an hour irrespective of
>> what PHP session.gc_maxlifetime value you specify!!)
>>
>>
>>
>> *From:* vtigercrm-developers-bounces at lists.vtigercrm.com <
>> vtigercrm-developers-bounces at lists.vtigercrm.com> *On Behalf Of *Rubén
>> A. Estrada Orozco
>> *Sent:* 04 April 2022 18:02
>> *To:* vtigercrm-developers at lists.vtigercrm.com
>> *Subject:* Re: [Vtigercrm-developers] how to extend session time in
>> vtiger
>>
>>
>>
>> Thanks a lot!
>>
>> Saludos
>>
>>
>>
>> Rubén
>>
>>
>>
>>
>>
>> On Mon, Apr 4, 2022 at 11:59 AM Alan Lord <alanslists at gmail.com> wrote:
>>
>> On 04/04/2022 17:44, Rubén A. Estrada Orozco wrote:
>> > For now I have just increased session.gc_maxlifetime from 1440 (24 min)
>> > to 36000 (10 hrs).
>> >
>> > Alan, do you think that should do?
>>
>> I think you will also need to change $maxWebServiceSessionIdleTime if I
>> recall correctly (or create your own session handler as Angelo
>> mentioned). See:
>>
>>
>> https://code.vtiger.com/vtiger/vtigercrm/blob/master/include/Webservices/SessionManager.php
>>
>> Al
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>> _______________________________________________
>> http://www.vtiger.com/
>
>
>
> --
> Development Manager
> Radus28 Software Solution
> [image: Radus28 Software Solution]
> 123, Level 2, Mc Larens Building
> Baudhaloka Mw.
> Colombo 04
> Sri Lanka
> M : +94773795291
> E  : sutharsan at radus28.com
> W : www.radus28.com
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20220407/c76a1713/attachment.html>


More information about the vtigercrm-developers mailing list