Jump to content

Clients get logged out on some pages in the front office


Recommended Posts

Hi there,

 

I'm having a problem with my store. I am not sure what is causing this and would appreciate any guidance. Using a test user account, whenever I login and start browsing, I notice that on certain pages I get logged out! If I login in and visit pages like "your account", "your wishlist", "customer service" - I'm still logged in just fine. It also works fine in the "shop by category" page. But when I click the home page and a few other pages, I'm no longer signed in. What would cause it to remain logged in on some pages but sign out on loading other pages?

 

Any assistance would be HUGELY appreciated! :)

Link to comment
Share on other sites

Can you please try switching back to the default PrestaShop theme and let me know if the issue persists?

 

-Mike

 

I swapped to the default theme and it's still doing that...I'll keep it on the default theme for a bit if you'd like to look at it?

Link to comment
Share on other sites

Please try the suggestion posted here and let me know if that works any better for you.

 

-Mike

 

I was on that post earlier and tried to do that. It didn't help me. :(

 

Seems his issue was slightly different to mine maybe?

I did this a few hours ago as suggested in that post: changed the "$smarty->caching" to true, found in the smarty.config.inc.php within the config folder. - Not winning...

Edited by Arkadia (see edit history)
Link to comment
Share on other sites

In that case, can you please post a new report to The Forge so that our development team can try to look into this for you?

 

-Mike

 

Will do so.

 

I don't know if this gives you any clues...but I started developing this using xampp on a local machine...on the local version of the site, the user stays logged in on ALL the pages EXCEPT for the "shop by brand" page. So the bug still occurs on the local version but it occurs to a lesser extent. (sidenote: the local version is outdated now...development went allot further on the online version of the site)...

 

Just wondering if that sparks any thoughts or ideas? :rolleyes:

Edited by Arkadia (see edit history)
Link to comment
Share on other sites

Will do so.

 

I don't know if this gives you any clues...but I started developing this using xampp on a local machine...on the local version of the site, the user stays logged in on ALL the pages EXCEPT for the "shop by brand" page. So the bug still occurs on the local version but it occurs to a lesser extent. (sidenote: the local version is outdated now...development went allot further on the online version of the site)...

 

Just wondering if that sparks any thoughts or ideas? :rolleyes:

 

Nothing immediately jumps out to me, but I would definitely recommend that you post that report so that our dev team can take a look at it for you.

 

-Mike

Link to comment
Share on other sites

Nothing immediately jumps out to me, but I would definitely recommend that you post that report so that our dev team can take a look at it for you. -Mike

 

Thanks for looking into it for me Mike. I posted a report. :) Appreciate you trying.

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

I had similar problems - turned out it only occurred when I had an item in the cart which made it harder to pin down. turned out to be problems with the customer loyalty module (I'm using Prestashop version 1.5.1)

 

 

FYI, I edited this around line 89 in modules/loyalty/LoyaltyModule.php

 

//$context = Context::getContext();
$context = Context::getContext()->cloneContext();

 

This in particular was used in the ShoppingCartFooter hook

Edited by jumprock (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...