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

Sutharsan J ajstharsan at gmail.com
Thu Apr 7 09:05:20 GMT 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20220407/913a7efa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_web.png
Type: image/png
Size: 15612 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20220407/913a7efa/attachment-0001.png>


More information about the vtigercrm-developers mailing list