Magento session lost when switching to https with http

I searched high and low to solve this, with no luck. My host told me they were too busy to help.

Magento 1.4.2 // SSL cert

1- When I add an item to the cart, the page reloads and my item is added to the cart. [Good]

2- Next, I click on the house and my items are no longer visible on the side of the cart. [Bad]

3- Next, I click "Tops" and my items are still not visible on the side of the cart. [Bad]

enter image description here

4- Then I click "Bottoms" and the elements are displayed just fine.

enter image description here

In all cases where the cart does not appear, I can add https to the URL and the cart will load just fine. Can someone help me understand why my session is getting lost between http and https?

I have all the settings for my web cookie set to no, except for the sID.

Also. When the user is logged in, the cart items are ALWAYS shown on the right. It is only sluggish if they are a guest.

Thanks guys if you need me to post any code let me know.

wwwdotlylifdotcom

EDIT: here is a screenshot of my cookie session in firebug (not quite sure what I'm looking for). Hope this helps. enter image description here

And here are my session settings in magento: I tried almost all of the on and off options.

enter image description here

CHANGE!

This problem actually narrowed down to a cache problem. We found that when deleting / deleting the cache, the website works correctly. But after a few minutes of surfing, the problem will recur. Does anyone have any ideas? (And should I change the title of the question?)

I am using a module called Lightspeed from TinyBrick, and it seems that the new cache settings have been messing around with our site. = (I will contact them shortly.

** EDIT Tinybricks excellent support has helped us. Thanks for all your suggestions.

+4
source share
4 answers

The excellent support of Tinybricks helped us. Thanks for all your suggestions. This was a localized issue based on a cache and module called Lightspeed.

-5
source

Is a session cookie only HTTPS? This will prevent it from being ported to regular HTTP requests, effectively giving the user two different sessions.

+1
source

You have two cookies in the screenshot with two domains, one with www and the other without it. Check if you have the correct domain name in the configuration> Web tab> File management> Cookie domain (or something close to it). If it is empty, set it to ".mydomain.com" and try again. Check if you have another cookie domain in your configuration in other types of storage, set them to “use the website”.

If still not working, what are the values ​​of the cookie management fields and cookie verification settings

0
source

We had similar problems when our user nav (depending on whether the user was registered or not) was not agreed on different pages.

We followed the suggestion @ http://ka.lpe.sh/2011/06/19/magento-checking-customer-admin-is-logged-in-or-not/ to check if the user was registered in the external database a session variable before rendering a specific block, and this seems to be a trick.

Perhaps you can try something like this.

0
source

All Articles