Hi guys,
I have been trying to search for solutions online for the past 2 weeks but none of it works so far, or that I applied it wrongly. I have an Opencart store v3.0.3.2 https://shinepharmacy.com and the customer login isn't working recently, from my google chrome dev tool network tab, it shows that each customer login were successful, but it just redirect back to account/login after that. It's highly likely a session issue but I've tried a few methods online but it doesn't work so far. Anyone help will be very much appreciated!
I have been trying to search for solutions online for the past 2 weeks but none of it works so far, or that I applied it wrongly. I have an Opencart store v3.0.3.2 https://shinepharmacy.com and the customer login isn't working recently, from my google chrome dev tool network tab, it shows that each customer login were successful, but it just redirect back to account/login after that. It's highly likely a session issue but I've tried a few methods online but it doesn't work so far. Anyone help will be very much appreciated!
Attachments
Capture.PNG (12.15 KiB) Viewed 678 times
Your OCSESSID cookie has a expiry date in the past. Check the PHP setting session.cookie_lifetime is 0.
https://github.com/opencart/opencart/issues/8141
https://github.com/opencart/opencart/issues/8141
To troubleshoot the customer login redirect issue, I recommend trying to temporarily disable Cloudflare / caching feature and see if it resolves the problem. Cloudflare sometimes introduces additional caching and security measures that can interfere with the login functionality on your website.
Business Web Development | Content Creation | Analytics and Reporting | SEO
Use phpinfo() to check the PHP session.cookie_lifetime setting in both the home and admin directories.
Hi Soh, thanks for the help, I've tried disabling Cloudflare caching and also paused Cloudflare from the site entirely, but it didn't help in this case.SohBH wrote: ↑Tue Jun 06, 2023 7:40 pmTo troubleshoot the customer login redirect issue, I recommend trying to temporarily disable Cloudflare / caching feature and see if it resolves the problem. Cloudflare sometimes introduces additional caching and security measures that can interfere with the login functionality on your website.
You need to set session.cookie_lifetime to 0 for OpenCart 3.0.x. You may have to ask your host where you can change the PHP settings.
I've tried changing session.cookie_lifetime from 360000 to 0 in etc/php/7.0/apache2/php.ini but in phpinfo it still shows 360000, any possible reason why?ADD Creative wrote: ↑Wed Jun 07, 2023 4:04 pmYou need to set session.cookie_lifetime to 0 for OpenCart 3.0.x. You may have to ask your host where you can change the PHP settings.
Glad to hear you managed to sort it out. Can you please add '[SOLVED]' to the beginning of the opening forum thread title? Thanks.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: Amazon [Bot], Baidu [Spider], Bing [Bot] and 321 guests