Post by Freakshow » Tue Sep 11, 2018 12:42 am

Hi Guys
A strange problem have popped up for some weeks ago, it seems i am logged in to both front and backend until i close my browser.
I am kinda lost sins i can point to a new module beeing installed or big changes made in general, so any pointers would be helpfull.

OC 2.3.0.2

Thanks :)

Freakshow

https://matoghage.no - Running on WooCommerce
https://www.doobie.no - Running on WooCommerce


User avatar
Active Member

Posts

Joined
Tue Dec 30, 2014 3:52 am
Location - Norway

Post by straightlight » Tue Sep 11, 2018 4:52 am

What does that explain? More information is needed.

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 Freakshow » Tue Sep 11, 2018 1:52 pm

straightlight wrote:
Tue Sep 11, 2018 4:52 am
What does that explain? More information is needed.
OC do not log me out from sessions, i only get logged out if i close the (exit) the browser, backend i do have to log inn if open a new window, but oc do not log me out like it use to. Fronten keeps me logged in until browser is closed.
dont know what more info i could give ;)

Freakshow

https://matoghage.no - Running on WooCommerce
https://www.doobie.no - Running on WooCommerce


User avatar
Active Member

Posts

Joined
Tue Dec 30, 2014 3:52 am
Location - Norway

Post by paulfeakins » Tue Sep 11, 2018 6:46 pm

straightlight wrote:
Tue Sep 11, 2018 4:52 am
What does that explain? More information is needed.
Not really, it's pretty clear.

Simple answer:
Add this to .htaccess and check it has been applied with the phpinfo() function.
<IfModule mod_php5.c>
# Session timeout in seconds
php_value session.cookie_lifetime 1800
php_value session.gc_maxlifetime 1800
</IfModule>

Long answer:
https://stackoverflow.com/questions/520 ... 30-minutes

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Tue Sep 11, 2018 8:04 pm

paulfeakins wrote:
Tue Sep 11, 2018 6:46 pm
straightlight wrote:
Tue Sep 11, 2018 4:52 am
What does that explain? More information is needed.
Not really, it's pretty clear.

Simple answer:
Add this to .htaccess and check it has been applied with the phpinfo() function.
<IfModule mod_php5.c>
# Session timeout in seconds
php_value session.cookie_lifetime 1800
php_value session.gc_maxlifetime 1800
</IfModule>

Long answer:
https://stackoverflow.com/questions/520 ... 30-minutes
I'm pretty sure it is. Which is why, OC v3.x releases do have the cookie lifetime defined as compared to OC v2.x releases and stated from the catalog/controller/startup/session.php file already.

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 Freakshow » Wed Sep 12, 2018 2:19 pm

paulfeakins wrote:
Tue Sep 11, 2018 6:46 pm
straightlight wrote:
Tue Sep 11, 2018 4:52 am
What does that explain? More information is needed.
Not really, it's pretty clear.

Simple answer:
Add this to .htaccess and check it has been applied with the phpinfo() function.
<IfModule mod_php5.c>
# Session timeout in seconds
php_value session.cookie_lifetime 1800
php_value session.gc_maxlifetime 1800
</IfModule>

Long answer:
https://stackoverflow.com/questions/520 ... 30-minutes
Thanks for your input guys,

I have done some testing and moved a copy of my live shop to a test server and also setup a new opencart shop just for test on the same server (enviroment).
Funny thing the live shop copy keeps me logged in and the new one logged me out as it should.
SO this is not an (PHP/Apache) enviroment issue, something on the live shop keeps the sessions going forever for some reason.

Freakshow

https://matoghage.no - Running on WooCommerce
https://www.doobie.no - Running on WooCommerce


User avatar
Active Member

Posts

Joined
Tue Dec 30, 2014 3:52 am
Location - Norway

Post by straightlight » Wed Sep 12, 2018 8:26 pm

Possibly caused by an installed extension requiring a high balanced of resource on the domain.

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 Freakshow » Wed Sep 12, 2018 8:31 pm

straightlight wrote:
Wed Sep 12, 2018 8:26 pm
Possibly caused by an installed extension requiring a high balanced of resource on the domain.
There are a few candidates, like iSenslabs NitroPack Cache og GDPR Compliance, just on top of my head :)

Freakshow

https://matoghage.no - Running on WooCommerce
https://www.doobie.no - Running on WooCommerce


User avatar
Active Member

Posts

Joined
Tue Dec 30, 2014 3:52 am
Location - Norway

Post by straightlight » Wed Sep 12, 2018 8:33 pm

Uninstall each extensions and notice, between each, if the problem persists with the session timeout events.

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
Who is online

Users browsing this forum: No registered users and 176 guests