Jump to content
Zohaib-fk

PrestaShop 1.7 back-office settings for dynamic IP change for automatic logout issue.

Recommended Posts

Hi,

 

PrestaShop 1.6.x has settings under the Administrator Preferences to Turn off the "Check Cookies IP address".

 

This helps for dynamic ip changing from ISP and getting logout from back-office.

 

I want to know in prestashop 1.7 where are these settings located.

Edited by zohaib82

Share this post


Link to post
Share on other sites

Thanks.

 

It is moved to Advance Parameters=>Administration menu option in version 1.7.x

Share this post


Link to post
Share on other sites

Hi,

I'm using PS 1.7.4.2, and I don't see that option under Advance Parameters=>Administration, I have the same problem of automatic logout when IP changes.

Is there a way to do it directly in database?

 

UPDATE

I was able to do it directly in database.

In the "configuration" table, there is a value "PS_COOKIE_CHECKIP" in "name" column, I changed the value from 1 to 0.

Hopes that works.

Edited by josh barak
Found solution

Share this post


Link to post
Share on other sites
2 hours ago, josh barak said:

Hi,

I'm using PS 1.7.4.2, and I don't see that option under Advance Parameters=>Administration, I have the same problem of automatic logout when IP changes.

Is there a way to do it directly in database?

 

UPDATE

I was able to do it directly in database.

In the "configuration" table, there is a value "PS_COOKIE_CHECKIP" in "name" column, I changed the value from 1 to 0.

Hopes that works.

I hope you realize that you made it much easier for someone to steal your cookie session and access your back office.

Just because you can do something... doesn't mean that you should.  Does your IP address really change that frequently, and it is that much of an inconvenience to log back into the back office?

Share this post


Link to post
Share on other sites

Hi bellini13

Thank you for making me aware to that.

1. I don't really understand, how can someone steal the cookie session?

2. I don't understand how this checkIP feature works. Does it mean I can't access the BO only from a certain IP? That's very strange, what if I want to work from home one day, is it not possible? Also what if my IP changes (Which it does once in a while), then I can't access the BO, not even to change my IP?

Share this post


Link to post
Share on other sites

You can access the back office, even if your IP changes.  You just need to log in again

Share this post


Link to post
Share on other sites

It didn't work in my case.

I cleared all cache and cookies in my browser, in other words I logged out, and yet each time I logged in, any link I would click would throw me back out to the login page again.

Edited by josh barak
spelling mistake

Share this post


Link to post
Share on other sites

then perhaps you have a different issue.  Perhaps you have installed a custom module that is interfering, or maybe some misconfiguration on your webserver.

Share this post


Link to post
Share on other sites
On 10/11/2018 at 12:32 PM, bellini13 said:

then perhaps you have a different issue.  Perhaps you have installed a custom module that is interfering, or maybe some misconfiguration on your webserver.

Hi bellini13,

I have the same issue, what kind of misconfiguration on the webserver can cause this?

I had to disable the cloudflare service to improve this issue, but it continues to happen, although less often.

Share this post


Link to post
Share on other sites

I have the same problem too.

I also do what josh barak said, but nothing changed.

Any idea on how to fix this on PS1.7.4.2?

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More