Fóruns

The great place to discuss topics with other users

How to fix mobile login session

'
Join the Conversation Resposta ao Post
Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-07-16 22:37:15

Some asked 

I noticed that on mobile, the session expires fast and log user out immediately but on pc it's not the same, i want my users on mobile to not be logged out just like the pc version does. Please how can i do that? 

 

I believe I found a solution for this. Well! It's working for me.

Backup your file before changing anything.

Open bootstrap.php and look for

 

$user->log_session(); 

And replace with

ini_set("session.cookie_lifetime", 604800);
ini_set("session.gc_maxlifetime", 604800);
$user->log_session();

Edy Lee
Admin
Joined: 2024-11-24 00:57:42
2025-07-17 14:58:03

This piece didn't work on mine.  As I'm trying to log on and site didn't log me in 

Horlaarsman OLAs
Member
Joined: 2024-11-25 13:43:18
2025-07-19 17:49:39

who else has tried this tutorial? 

David  Santos
Member
Joined: 2024-11-24 02:22:14
2025-07-25 14:18:49

works