Post by liprotech.in » Wed Jan 26, 2022 4:05 am

Hi,
We have OpenCart 3.0.3.7 installed at the Plesk panel in a Hostgator VPS.
For the last 2-3 months we are facing a different type of issue, we regularly install and update our many extensions. But we are failed to detect the issue.
**Our theme is Journal 3. But we have tried to uninstall the theme and check this issue for 2-3 days, same things happen.

Problem:
At night when I personally login to the admin panel, my login token stayed valid as long as my system is on. There was no such issue.

But at office time, many admins (different users) log in to the OpenCart admin panel at a time, approx 4-5 users. Everyone frequently gets logged out automatically from the admin panel. At the same time, many customers (front end-user) also complain that they feel very bad as they get logged out in the middle of any purchase, like at the checkout page or multiple items added to the cart then get logged out automatically.

Our website is https://nationalpc.in
you can create an account and test the situation from IST 11:30 AM to 07:30 PM

PROSENJIT DAS
nationalpc.in
Lowest Price at your doorstep


User avatar
New member

Posts

Joined
Tue Oct 16, 2018 11:13 pm

Post by mikeinterserv » Wed Jan 26, 2022 4:17 am

How do you administer your DB -
If phpmyadmin for example look at the session table and see what is going on there.

Also possible is a caching/proxy issue

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by liprotech.in » Wed Jan 26, 2022 4:26 am

It's really surprising
oc_session table is only 80.0 KiB

Whenever I checked before, this was always above 15 MiB. But now this is only 80.0 KiB though I haven't cleared this for the last 1-2 months. Something serious !!

PROSENJIT DAS
nationalpc.in
Lowest Price at your doorstep


User avatar
New member

Posts

Joined
Tue Oct 16, 2018 11:13 pm

Post by mikeinterserv » Wed Jan 26, 2022 4:37 am

It should become obvious what is occurring if you monitor that session table during logins etc.
The session table should clear down by itself depending on what code is in there. There were problems in some OC versions.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by liprotech.in » Wed Jan 26, 2022 2:32 pm

We have updated the OC version to 3.0.3.8 and the PHP version to 8.0.15
Let's see for 1-2 days, will update here.

PROSENJIT DAS
nationalpc.in
Lowest Price at your doorstep


User avatar
New member

Posts

Joined
Tue Oct 16, 2018 11:13 pm

Post by mikeinterserv » Wed Jan 26, 2022 11:31 pm

liprotech.in wrote:
Wed Jan 26, 2022 2:32 pm
We have updated the OC version to 3.0.3.8 and the PHP version to 8.0.15
Let's see for 1-2 days, will update here.
You may encounter some issues here.
If you do - apply the fixes available or go back to php 7.4

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by liprotech.in » Wed Feb 22, 2023 2:36 pm

We are using the OC version of 3.0.3.8 and the PHP version of 8.0.27 with Journal 3.2. We have tried to use the default OpenCart theme. But the same things happening.
There was no fixed time limit for logout.
Admin and user log out frequently even if they are active on that session. Sometimes from the add to the cart page, they are going to log out as per the customer feedback.

PROSENJIT DAS
nationalpc.in
Lowest Price at your doorstep


User avatar
New member

Posts

Joined
Tue Oct 16, 2018 11:13 pm

Post by ADD Creative » Wed Feb 22, 2023 5:48 pm

Are you using db or file sessions? Check 'session_engine' in system/config/default.php and system/config/catalog.php.

What are your PHP settings session.cookie_lifetime, session.cookie_path, session.cookie_domain, session.gc_maxlifetime, session.gc_probability and session.gc_divisor set to. Use phpinfo() to find them.

Try setting some cache control headers.
viewtopic.php?t=206449#p853532

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by JNeuhoff » Wed Feb 22, 2023 6:31 pm

liprotech.in wrote:
Wed Jan 26, 2022 2:32 pm
We have updated the OC version to 3.0.3.8 and the PHP version to 8.0.15
Let's see for 1-2 days, will update here.
You do realize that OpenCart 3.0.3.8 doesn't support PHP 8, don't you?

In order to use PHP 8 (we recommend PHP 8.2) you'd have to upgrade to the 3.0.x.x_Maintenance release.

Also, do you yourself a favor and use the OpenCart framework, along with a proper and nicer-looking theme, and not the Journal3 framework.

If your session DB table was so huge until recently then this could mean that your site was subjected to a bruteforce attack, check the server's raw access log on this. This might have contributed to your session issues.

Finally, try using reasonable default values for your PHP settings ession.gc_maxlifetime, session.gc_probability and session.gc_divisor.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: Adminas99999, Semrush [Bot] and 85 guests