juiceterry Posted January 24, 2014 Share Posted January 24, 2014 Hi Since some time, it is not possible to login to our prestashop anymore on chrome browsers.. On other browsers it works all good.. And maybe 1 year ago, i can bet that it worked also on chrome, since then, i did not update the prestashop (but as we all know: chrome did..). I tried several things: disabling SEO urls, disabling https... nothing helped.. except: when i change the shop url in configuration from "www.seasonwear.ch" into "seasonwear.ch" the user can login again.. But that would be not a solution, since we have the www.seasonwear.ch url linked in many sources.. What i found out is some strange cookie displays in chrome (see attached screenshot). Test user: [email protected] pw: iLjN31e2 Does anybody know a solution for this? Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 you've got these problems only on your PC, or this errors also appears on other devices? Link to comment Share on other sites More sharing options...
juiceterry Posted January 27, 2014 Author Share Posted January 27, 2014 Hi vekia, I have this issue on every chrome browser (on my mac osx or windows 7).. tested on several devices (macbook, osx and vmware, and also on my lenovo, windows 7).. even on my iOS Chrome app i have the same results, whereas on the safari mobile browser i can login without problems... I tried to remove the entire browsing history.. no success... Did You try on chrome with the login credentials i mentioned above? regards, Link to comment Share on other sites More sharing options...
ricky11 Posted January 27, 2014 Share Posted January 27, 2014 try browserstack.com great tool for testing across multiple browsers. Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 another thing: you use synchronisation between these browsers (via google account) maybe you've got some plugin which blocks some kind of features etc. ? it's worth to check this Link to comment Share on other sites More sharing options...
prestashopninja Posted January 27, 2014 Share Posted January 27, 2014 I can confirm that I can login with the test user using Firefox while I cannot login with Chrome. There is another topic in the forums covering the same issue. Maybe it would be helpful: http://www.prestashop.com/forums/topic/259363-cookies-problem-in-chrome/ Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 chrome browser: i can login without problems (i created test account) Link to comment Share on other sites More sharing options...
prestashopninja Posted January 27, 2014 Share Posted January 27, 2014 I also created a new test account and I still can't login with Chrome. Apparently this affects only some Chrome versions. Mine is 27.0.1453.93 / Ubuntu 13.10 Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 tested on Version 32.0.1700.76 m also on nighty release (beta) and works Link to comment Share on other sites More sharing options...
juiceterry Posted January 27, 2014 Author Share Posted January 27, 2014 right, i tried the following: - updated to Chrome 32.0.1700.102 - Disconnected my google account - cleared all the history Still i can't login (???), strange is: If i enter a wrong password, the error message appears saying that the password is incorrect (correct), but when i try to login with the correct credentials, it just refreshed the page.. Anybody else does have any suggestions? I have the cookies in suspicion.. @vekia, how does your cookies differs from mine on chrome? Link to comment Share on other sites More sharing options...
juiceterry Posted January 27, 2014 Author Share Posted January 27, 2014 I don't know what happened, but i tried around with the shopping cart, since i saw a similar problem there (cart was empty out of the blue).. So i removed all the cookies again and tried again with the cart.. guess what, the cart was correct, and so was the login.. This is one of the weirdest thing, and i still don't know how to explain that to the shop owner.. Anyway i guess that slipped in with a bug of an older version of Chrome, and disappeared again.. but once opened the url, it's hard to get rid of it.. it might be also a confusion with the admin, since the admin site i can access with "seasonwear.ch" not only with "www.seasonwear.ch".. anyway, i still can't reproduce the problem .. Link to comment Share on other sites More sharing options...
prestashopninja Posted January 27, 2014 Share Posted January 27, 2014 This is still really weird. Of course I am happy for you, yet we still don!t know much about the source of the problem. If this ever happens again, could you place a couple of breakpoints in AuthController::processSubmitLogin() method to see what goes on there? Link to comment Share on other sites More sharing options...
juiceterry Posted January 28, 2014 Author Share Posted January 28, 2014 I think i can reproduce the problem: I delete all the cookies and open the shop with "seasonwear.ch" -> cannot login i delete all the cookies and open the shop with "www.seasonwear.ch" -> login works! That explains also the strange cookie url naming.... you think i can configure this somehow in .htaccess? is it the kind of redirection? regards, Link to comment Share on other sites More sharing options...
djaenicke Posted January 28, 2014 Share Posted January 28, 2014 Hi, I'm having this problem as well. I recently changed my domain that customers access my shop from joovuu.com to https://www.joovuu.com. Could this be the problem and if so how do I go about telling customers to solve it? Just delete all the old cookies and access it from https://www.joovuu.com and it should work fine? Cheers, Dan Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 seasonwear.ch isn't the same as www.seasonwear.ch you should use some kind of redirection to one proper version (i have no idea which one is proper - check seo & urls preferences) Link to comment Share on other sites More sharing options...
prestashopninja Posted January 28, 2014 Share Posted January 28, 2014 seasonwear.ch isn't the same as www.seasonwear.ch you should use some kind of redirection to one proper version (i have no idea which one is proper - check seo & urls preferences) Right. seasonwear.ch gets ridirected to www.seasonwear.ch and it seems that Prestashop first generates and drops the cookie and then redirects to www. and that might be the source of the issue. Link to comment Share on other sites More sharing options...
djaenicke Posted January 28, 2014 Share Posted January 28, 2014 I seemed to have solved the problem by getting rid of the www. So people access the site at joovuu.com and not www.joovuu.com. It seems to be working for me. Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 glad to hear that it works so now waiting for seasonwear owner to include these changes, will see what will happen then Link to comment Share on other sites More sharing options...
juiceterry Posted January 28, 2014 Author Share Posted January 28, 2014 changed the .htaccess and added this line inside the mod_rewrite condition (after RewriteEngine on): RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Hope this might help somebody else as well.. (maybe remove the cookies before testing) 1 Link to comment Share on other sites More sharing options...
shahriar Posted February 5, 2014 Share Posted February 5, 2014 (edited) changed the .htaccess and added this line inside the mod_rewrite condition (after RewriteEngine on): RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Hope this might help somebody else as well.. (maybe remove the cookies before testing) i have same problem , im using multistore , in .htaccess i have for 3 domains , i add your code in .htaccess but still customer can not loging to shop by chrome . My shop make 2 cookies on browser domain.com and www.domain.com . when i remove only domain.com cookie everything fine , but after sometimes again i cannot loging and need delete again domain.com cookie i check your shop , your shop make 2 cookies , i think you have still that problem , but it shows sometimes and in all browser Edited February 5, 2014 by shahriar (see edit history) Link to comment Share on other sites More sharing options...
fabien.thetis Posted June 7, 2017 Share Posted June 7, 2017 One solution simple works for me . Clear the cookie from the domain of your shop Link to comment Share on other sites More sharing options...
Recommended Posts