patrick81 Posted January 11, 2013 Share Posted January 11, 2013 This is pretty weird. I have a feeling that it's a cache issue but I'm not 100% sure. 1. I fresh installed the latest version 1.5.3.1. I didn't add else. It's 100% fresh installed 2. I registered... when I log in, it keeps redirecting to the login page and says nothing. I click on the logo to get back to the homepage. I see that my name is logged in. Then i click on my name to see if i can get to my account page. Instead, it takes me back to the login page showing that i'm not logged in. wait for 30 secs to a minute..... refresh the page.. it finally takes me to my account page automacically. It's pretty clear that it's some kind of cache or cookie issue! I have no idea why it's doing that although it's 100% fresh installed. (I fresh installed 3 times and the issue was still there!) I tested with two different browsers, Firefox and Safari. I cleared both browsers cache and folders on my server. No luck! What's exactly going on here? By the way, it acts the same if i try to log out. I have to wait for 30 secs or a minute before i refresh the page. It does that every time. Odd!! Do you guys have any ideas how I can fix this? I would appreicate your help! Thanks, Patrick Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 by the way, do you think Varnish is causing this problem? I'm not quite sure how I can disable it and test it myself. Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 12, 2013 Share Posted January 12, 2013 (edited) Patrick, try putting, Cache-Control: no-cache in the head section of your themes header.tpl Basically find </head> and put it just above. So it will look like this, Cache-Control: no-cache </head> Let me know if that helps ... Edited January 12, 2013 by Bill Dalton (see edit history) 1 Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 Hey! Okay, i just added that just above </head> in header.tpl. I see "Cache-Control: no-cache" in upper-left corner. Is that normal? i restarted Varnish.. wiped broswer cache... tested and still no luck. Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 12, 2013 Share Posted January 12, 2013 If it is in the head section it should not show in your browser. Have you worked with HTML files Patrick? It would help if I knew your skill level. Are you sure you put the code in the head section? 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 12, 2013 Share Posted January 12, 2013 Can you give a link to the site? 1 Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 Oh yeah i'm comfortable with html/css. That's why I was quite surprised to see that in upper-left corner. Take a look... Hmm weird If it is in the head section it should not show in your browser. Have you worked with HTML files Patrick? It would help if I knew your skill level. Are you sure you put the code in the head section? 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 12, 2013 Share Posted January 12, 2013 Ok, I'm sorry my fault, please try this instead, <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> 1 Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 haha okay trying now Ok, I'm sorry my fault, please try this instead, <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 I don't think it helps. I've never seen anything like this before! VERY odd! I already posted it on Varnish forum. I don't know much about Varnish. I'm hoping someone there will help me disable Varnish and see if this will fix the problem. Varnish is HELL stubborn! lol By the way, it works GREAT on someone's server, not on mine. Varnish is the ONLY thing on my mind right now. It has to be. Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 12, 2013 Share Posted January 12, 2013 I agree, and I had thought that Varnish would respect the No Cache Control. Vanish can be setup on a different IP but mostly it is set up on port 80 and your web site server is set up on another port. If you knew what that port number is, you can bypass Varnish by typing the domian.com:PORTNUMBER 1 Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 yeah i do! it's 8080. I tried this..... mysite.com:8080 it shows up but my store is really in mysite.com/store/ When I enter mysite.com:8080/store/ it goes back to mysite.com/store. It drops 8080. How can i make it stay mysite.com:8080/store/? I have Webmin.. maybe i can tweak it around there. I agree, and I had thought that Varnish would respect the No Cache Control. Vanish can be setup on a different IP but mostly it is set up on port 80 and your web site server is set up on another port. If you knew what that port number is, you can bypass Varnish by typing the domian.com:PORTNUMBER Link to comment Share on other sites More sharing options...
Bill Dalton Posted January 12, 2013 Share Posted January 12, 2013 (edited) Yes, mysite.com:8080/store/ That should have worked as well! Blast! I think you are on the right track, in that it is a cache issue. You could use Varnish to cache static items, your images for example but it is very hard to control a shopping cart because almost every page requires a change. You need to set Varnish to ignore PHP. Instead you should use a PHP accelerator that caches the bytecode of PHP scripts, http://en.wikipedia....PHP_accelerator You'll need all cache shut off while you work on the site so you can see changes as you make them. So you need to shut down Varnish certainly for the short term regardless. Edited January 12, 2013 by Bill Dalton (see edit history) 1 Link to comment Share on other sites More sharing options...
patrick81 Posted January 12, 2013 Author Share Posted January 12, 2013 yeah. Someone finally answered from the other forum. All i have to do is go to /ect/varnish/default.vcl and find sub vcl_recv { Just add return(pass); after it. It will disable all caching. It works!! You are def right. Varnish doesn't do very well with Prestashop however it works great with Dolphin 7.1 ( it's networking software). They are on separate domains so i'm thinking maybe I turn varnish on for domain1.com (Dolphin) and disable domain2.com (Prestashop). Anyway, Thanks sooo much for you help. I truly appreciate it! 1 Link to comment Share on other sites More sharing options...
aifaiz Posted May 7, 2013 Share Posted May 7, 2013 hi, i have the same issues about the login/logout cache/cookies ( dont know which one of them is the issue) 1. click log in 2. input username pwd 3. click on the front page. 4. im not logged in 5. refresh the page. 6. there you go. im logged in.... 7. click log out 8. click on the logo togo to the homepage 9. my name is still there 10. tried to click on the my-account 11. i can freely view the account, view history, everything except changeing info ( if i click save or anything it will go to the login page ) 12. refresh the page. 13. username dissapear and have to log in again urgh... need help.... Link to comment Share on other sites More sharing options...
ecokeenuo Posted June 12, 2013 Share Posted June 12, 2013 I'm having the exact same problem as discribed above. Link to comment Share on other sites More sharing options...
Andreasjj Posted August 8, 2013 Share Posted August 8, 2013 Have anyone found a solution yet? i am having the same problem Link to comment Share on other sites More sharing options...
Recommended Posts