Possible to extend login session time?

Discussion in 'Subrion Open Source CMS Core' started by subrionfan, Sep 25, 2015.

  1. subrionfan

    subrionfan New Member

    A way to do this or let it remember login session (checkbox) while logging in? Because I often get kicked out (probably 15 minutes) in the middle to data entry.

    Thank you!
  2. Janur_J.

    Janur_J. Staff Member

    Hi!

    In the 3.3.5 Subrion we have fixed this behavior.

    In case you can't upgrade your version, please use the following code to fix this:
    PHP:
    ini_set('session.gc_maxlifetime', 1800); // 30 minutes
    session_name('INTELLI_' . substr(md5(IA_HOME), 0, 10));
    session_start();
    setcookie(session_name(), session_id(), time() + 1800);
    Instead of the following code in /subrion-installed-folder/index.php (index.php file in root of your Subrion installation) for previous versions
    PHP:
    session_name('INTELLI_' . substr(md5(IA_HOME), 0, 10));
    session_start();

Share This Page