Jump to content

[SOLVED] Keeps logging in and out on page changes, help please


Recommended Posts

I finally finished configuring my prestashop project and afterward I followed some tutorials on optimizing the site for faster load times. I don't know what I did, but in the process something strange happens.

Whenever I click different pages (ie. home, shoes, clothes, etc), login section in the top right corner shows that Im logged in on one page and logged out on another. In the instance when it says that I am logged in, I click the cart but it says that the cart is empty. This probably has something to do with my cookies, but I know it shouldn't be like this. And when I would try to go through with an order, the server would time out.

I uploaded a final backup copy of the entire that I made just a few hours before (thank God for that!) and it helped a little. It allows an order to go through, but it still shows logged in/out on pages changes.

What could possibly be causing this? What files would be involved? And why wouldn't a fresh backup upload (working perfectly before) not work now? You might have to create a fake account and add a product to the cart to see what I'm talking about.

here is the link to the site: HERE

I would appreciate any help on this issue.

Thanks a lot,

gdinari

Link to comment
Share on other sites

After going through the site it seems that I'm never actually logged out. I created a test account and whenever I click an account related link, it will log me in. But when I click a non related link, it appears that Im not logged in...or something like that.

But overall, it seems that my login in sessions never ends. Somehow it's saved and automatically logs in and out on certain pages.


[uPDATE]
I've noticed that Im having a login issue with the admin section too.I left the admin alone for about 5-10 minutes and when I click a tab/link it redirected me to the login screen.

I created a .htaccess file, I deleted it already, but it think it has something to do with that too. I used the .htaccess file to try and remove ETags. Not to mention I uploaded a clean backup that didnt have problems, but I still have the problem. Please help.

[uPDATE]
Seemed to fix the problem by changing the "$smarty->caching" to true, was found in the smarty.config.inc.php within the config folder. Never touched this before, but it seems to help the login issue I had. Hopefully this doesn't effect the site in a wrong way.

Link to comment
Share on other sites

  • 1 year later...

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
×
×
  • Create New...