Page 1 of 1

Keep User Login for longer duration

Posted: Sun Aug 19, 2018 2:19 pm
by vssoft
Hi,

How to increase user logged in duration (front-end) as I have noticed user automatically logged out after sometime even not used logout option.

I want user always keep logged in for 30 days except not used logout option.

Thanks

Re: Keep User Login for longer duration

Posted: Sun Aug 19, 2018 10:59 pm
by MarketInSG
Here you go: https://stackoverflow.com/questions/831 ... out-in-php

You need to change your PHP settings.

Re: Keep User Login for longer duration

Posted: Tue Aug 21, 2018 12:36 pm
by vssoft
Thanks for your reply.

I want to know whether this method is safe and secure . Any disadvantages (change php settings) to extend session duration.

Besides this , I have found below extension for the option I required:
https://www.opencart.com/index.php?rout ... 0autologin

Please confirm which would be better.

Re: Keep User Login for longer duration

Posted: Tue Aug 21, 2018 1:49 pm
by thekrotek
This extension is for customers, not for users.

Re: Keep User Login for longer duration

Posted: Tue Aug 21, 2018 7:43 pm
by vssoft
Yes, I want to extend login time duration for customers.

Re: Keep User Login for longer duration

Posted: Tue Aug 21, 2018 8:04 pm
by thekrotek
vssoft wrote:
Tue Aug 21, 2018 7:43 pm
Yes, I want to extend login time duration for customers.
You should've been more specific then. For customers this extension will work.