Prestashop cookies


#1

Strange behavior: very often, and in a very casual way, Prestashop logs out from the back office. And this happens only by enabling cloudflare, if I pause my domain, this behavior does not happen. And this happens with all browsers: chrome, firefox, edge, safari. What could be the reason?


#2

Which version of Prestashop are you using?

Can you check if Prestashop is set up to “Check Cookies IP address”? Should be under Advanced Parameters somewhere. You may need to disable that to allow for dynamic IP changes.


#3

I use 1.7.4.2 Prestashop release, with php 7.2.10
I’ve a static IP on my office.


#4

Is your server set up to restore the Visitor IP?

See: https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs

Since Cloudflare acts as a proxy, Prestashop might currently only see Cloudflares IP - which can change all the time.


#5

Thanks @martin2
Just disabled “Check Cookies IP address” on prestashop… I’m cecking the behavior and let you know.


#6

my vps have plesk onyx, o.s. debian 9.5 with nginx as proxy: do you suggest me to install mod_cloudflare (no more supported https://support.cloudflare.com/hc/en-us/articles/200170896-Using-mod-cloudflare-Packages)
or other suggestions?


#7

mod_cloudflare is for Apache.

If you use Nginx then I would suggest this guide:


#8

This topic was automatically closed after 14 days. New replies are no longer allowed.