Fóruns

The great place to discuss topics with other users

Mobile Logging Out Problem

'
Join the Conversation Responder a publicação
Horlaarsman OLAs
Member
Joined: 2024-11-25 13:43:18
2025-07-14 06:22:54

Hello, 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? 

Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-07-14 06:39:59

Someone said that unusual login must be off here /admincp/settings/security

But I do not see it works for me

Horlaarsman OLAs
Member
Joined: 2024-11-25 13:43:18
2025-07-14 06:43:01

My unusual login has always been off, but still the same thing

i like the fact that on pc i dont get to login everytime, but its annoying on mobile to always login again 

people are lazy and some people even dont remember their password 

i think you need to check this our my boss. 

Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-07-14 06:52:14

I need to check this out? 😂 Ask Zamblek and bring me the answer. Don't be lazy 🤪

Horlaarsman OLAs
Member
Joined: 2024-11-25 13:43:18
2025-07-14 07:09:57

Lol i mean you need this feature too

Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-07-14 21:20:21

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

// First, set session parameters BEFORE session is started ini_set("session.cookie_lifetime", 604800); // 1 week ini_set("session.gc_maxlifetime", 604800); // Then allow session to start $user->log_session(); // this internally calls session_start()

Kindred Spirits
Member
Joined: 2024-12-22 10:12:13
2025-07-16 03:37:17

I Don't know for you, but working fine for me! Thanks for sharing the solution as always <3 

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

Let me try it out