Jump to content

Strange login + cache issues


Recommended Posts

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? :huh:

 

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

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...

 

screenshot20130111at934.png

 

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?

  • Like 1
Link to comment
Share on other sites

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

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

  • Like 1
Link to comment
Share on other sites

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

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 by Bill Dalton (see edit history)
  • Like 1
Link to comment
Share on other sites

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! :D

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

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.... :blink:

7. click log out

8. click on the logo togo to the homepage

9. my name is still there :huh:

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 ) :o

12. refresh the page.

13. username dissapear and have to log in again

 

urgh... need help.... :unsure:

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
×
×
  • Create New...