Jump to content

[SOLVED] Cookie being dropped when outside of Prestashop Directory


brad-w

Recommended Posts

Hey everyone, I have Prestashop running in my /products directory and it seems that every time I navigate too (for example) my contact us or privacy policy page (outside of the /products directory) all items in the shopping cart are dropped regardless of being logged in or not. Is this just a cookie setting that I'm not aware of?

EDIT: The logged in status also drops when outside of the directory.

Thanks,

Brad

Link to comment
Share on other sites

Thanks for the quick reply, I tried David Baker's suggestion but it seems the only effect was that when the login form is filled in correctly the cookie is not set at all. The entire login fails and reloads the login page.

Link to comment
Share on other sites

This is really strange.. I just removed the line of code that the website suggested, re-uploaded the Cookie.php file exactly as it was before and it seems to work now? I'm going to keep playing with it and see if I can figure out what's going on...

EDIT: It seems to have gone full circle and is now acting the same way as when I posted the original problem. If anyone else has a solution for how to edit the cookie I'd really appreciate it.

Link to comment
Share on other sites

I have tested this, this could cause a security problem. This change could possibly lead a logged customer to access your backend, or a logged in employee to access a customer account. Did you try logging out of the back end, and logging in as a customer in the front end, then browsing the back end might give you access without logging in as an employee.
I think any customer could potentially access your backend now.

Link to comment
Share on other sites

  • 1 year later...

the site he went on doesnt exist anymore, but i need that same thing. i have some pages outside the prestashop dir that i need customers to still be logged in when they access them. how is that done??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...