Post by Dutch Pride Code » Tue Jul 27, 2021 12:36 am

Hi all,

I'm running OC 3.0.3.7 on localhost (XAMPP) and everytime I've been inactive for about 15 minutes my admin account gets logged out. The setting below does nothing at all. I found many outdated topics on this subject. How do I force admin to stay logged in for, say, 24 hours?

File

Code: Select all

php.ini
Setting

Code: Select all

session.gc_maxlifetime = 86400
Last edited by Dutch Pride Code on Tue Jul 27, 2021 5:50 am, edited 2 times in total.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by straightlight » Tue Jul 27, 2021 12:45 am

See this solution (even though it may not be the best option still at this time): viewtopic.php?f=202&t=224718&p=824712#p824712 . As an alternative, I would propose modifications to your .user.ini file instead of php.ini file (if using a recent version of cPanel).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Dutch Pride Code » Tue Jul 27, 2021 5:50 am

Thanks, the final option (editing admin/index.php) seemed to work for me!

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm
Who is online

Users browsing this forum: No registered users and 103 guests