JasonWang Posted January 14, 2014 Share Posted January 14, 2014 (edited) Hi, I have encountered a problem. Once I login the backoffice, if I spend a little time, like 3 mins editing some content, then I do some request, it asks me to login again. I know in backoffice, I could set the seesion time. I'm very sure it's not about settings of the Prestashop. Because I don't have this problem on localhost. It may have something to do with the code of authentication. Here's my phpinfo page. http://www.samaterials.com/phpinfo.php Hope someone could help me. Thank you in advance. Edited January 14, 2014 by JasonWang (see edit history) Link to comment Share on other sites More sharing options...
Zedrox Posted January 14, 2014 Share Posted January 14, 2014 Hi, You should try to increase the value of session.cache_expire in php.ini file Regards, Zedrox Team Link to comment Share on other sites More sharing options...
vekia Posted January 14, 2014 Share Posted January 14, 2014 you've got dynamic ip or static? Link to comment Share on other sites More sharing options...
JasonWang Posted January 14, 2014 Author Share Posted January 14, 2014 (edited) you've got dynamic ip or static? I am using a VPS and running 2 sites on that server. I guess it's not static. Is there any possibility that it's the problem of my internet environment. If I use a VPN like goagent, I cant login at all. Even without goagent, I found my outside ip is not always the same when I tried to access remote database. Edited January 14, 2014 by JasonWang (see edit history) Link to comment Share on other sites More sharing options...
JasonWang Posted January 14, 2014 Author Share Posted January 14, 2014 Hi, You should try to increase the value of session.cache_expire in php.ini file Regards, Zedrox Team I guess it's not. session.cache_expire is 180 minutes now. Thanks anyway. Link to comment Share on other sites More sharing options...
Zedrox Posted January 14, 2014 Share Posted January 14, 2014 I guess it's not. session.cache_expire is 180 minutes now. Thanks anyway. Well i belive it is 180 seconds, you can try it once Regards, Zedrox Team Link to comment Share on other sites More sharing options...
JasonWang Posted January 14, 2014 Author Share Posted January 14, 2014 Well i belive it is 180 seconds, you can try it once Regards, Zedrox Team I tried to set it to 1800. Problem is still there. Link to comment Share on other sites More sharing options...
vekia Posted January 14, 2014 Share Posted January 14, 2014 I am using a VPS and running 2 sites on that server. I guess it's not static. Is there any possibility that it's the problem of my internet environment. If I use a VPN like goagent, I cant login at all. Even without goagent, I found my outside ip is not always the same when I tried to access remote database. i mean your ip, from your internet provider Link to comment Share on other sites More sharing options...
JasonWang Posted January 15, 2014 Author Share Posted January 15, 2014 i mean your ip, from your internet provider It's static. I check my ip once after a while for several times. It's the same. Link to comment Share on other sites More sharing options...
vekia Posted January 16, 2014 Share Posted January 16, 2014 well i've got possibility to check ip addresses here, i've noticed that you've got different ip adresses Link to comment Share on other sites More sharing options...
JasonWang Posted January 17, 2014 Author Share Posted January 17, 2014 well i've got possibility to check ip addresses here, i've noticed that you've got different ip adresses Then you should be right. Finally, I found a PS_COOKIE_IP in configuration table. I disabled it, then problem solved. Link to comment Share on other sites More sharing options...
vekia Posted January 17, 2014 Share Posted January 17, 2014 in back office, under administration > preferences tab there is an option to "check IP on the cookie" i think that this causing problems (due to your dynamic ip) Link to comment Share on other sites More sharing options...
Recommended Posts