p1p2

Registered
Sep 21, 2022
4
1
3
Madrid
cPanel Access Level
Website Owner
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?
 
Last edited by a moderator:

p1p2

Registered
Sep 21, 2022
4
1
3
Madrid
cPanel Access Level
Website Owner
Hello! I'm going to try to explain it, English is not my first language, and I'm kind of new to this.

My website uses Cpanel, and I use PHP to start the session, you know, I use the session_start(). The problem is that if the user spends 24 minutes without browsing my site, the session is disconnected.

I would like users to be able to have their account active for several days, and if they enter my page, that time will be refreshed. I don't know if this is possible, but I would like to know what possibilities cPanel has.

I hope I have answered what you asked
 

p1p2

Registered
Sep 21, 2022
4
1
3
Madrid
cPanel Access Level
Website Owner
Hey there! Can you provide us with some more details on where this timeout is happening? I can't think of anywhere in WHM or cPanel where there would be a 24-minute timeout. Is this on a certain page of your website?
I forgot to answer the most important thing, it happens to me on all the pages of my website.