Answer the question
In order to leave comments, you need to log in
How to set the duration of the session on the site on Phalcon?
There is a site on Phalcon.
In php.ini session.gc_maxlifetime = 1400
Since there is no access to the php.ini file, I try to override this value via php and set the duration to 8 hours:
ini_set('session.gc_maxlifetime', 28800);
ini_set('session.cookie_lifetime', 28800);
session_set_cookie_params(28800);
ini_set('session.gc_maxlifetime', 300);
ini_set('session.cookie_lifetime', 300);
session_set_cookie_params(300);
Answer the question
In order to leave comments, you need to log in
Colleague, 300 is less than 1400 set in php.ini)))))
That's why you can install it.
And override the php.ini settings
php.net/manual/ru/session.configuration.php
Look towards the session.save_path settings for the sessions of these files
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question