What causes a php session to expire?

1

In php as sessions are useful for holding data temporarily. But mine are exhaling really fast (in less than 15 minutes) and I still can not figure out why. My session.cache_expire , according to phpinfo () is set to 240.

Thank you in advance.

    
asked by anonymous 14.07.2015 / 20:36

1 answer

1

You have to change the parameter session.cookie_lifetime more information in the PHP site

Update:

You also try to increase% ex by%.

ini_set('session.gc_maxlifetime', 3600);
session_set_cookie_params(3600);
session_start();
    
14.07.2015 / 21:10