Join our Facebook Group
ScriptsTribe • Sngine • Community
Join

Forums

The great place to discuss topics with other users

How to fix mobile login session

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

works 

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

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();

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

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();

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

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();

ScriptsTribe https://scriptstribe.com