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 :)


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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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


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

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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.


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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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 :)


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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


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 34 guests