cPanel Forums

Is there a way to increase the session time on the user? It only lasts me 24 minutes. I tried things like that: "define('DURACION_SESION','7200'); //2 horas ini

increase user session time

Is there a way to increase the session time on the user? It only lasts me 24 minutes.

I tried things like that:

"define('DURACION_SESION','7200'); //2 horas
ini_set("session.cookie_lifetime",DURACION_SESION);
ini_set("session.gc_maxlifetime",DURACION_SESION);
ini_set("session.save_path","/tmp");
session_cache_expire(DURACION_SESION);
session_start();
session_regenerate_id(true); "

But it doesn't work, can someone help me?
+ نوشته شده در  ساعت 11:16  توسط generator  برچسب ها: