As they are friends, it happened to someone else that the lifetime of the variable $ _SESSION does not last long enough and when you reload the page again asks the user to log in, someone knows how to increase the time of life. I tried my PHP code after the user data is valid
ini_set('session.gc_maxlifetime', time() + (60*60*4));
ini_set('session.cookie_lifetime', time() + (60*60*4));
and in the php.ini of the server I have placed the following:
session.gc_maxlifetime = 14400
session.cookie_lifetime = 14400
But still it does not work and the life time remains the same, I hope you can help me, thanks in advance.