从http切换到https时,Magento会话丢失 [英] Magento session lost when switching to https from http

查看:354
本文介绍了从http切换到https时,Magento会话丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索过高低,找不到解决方案,没有运气。我的主人告诉我他们太忙了,无法提供帮助。



Magento 1.4.2 // SSL证书



1-当我将商品添加到购物车时,页面会重新加载,我的商品会被添加到购物车中。 [good]





2-接下来,我点击主页,我的商品在购物车边栏中不再可见。 [差]





3-接下来,我点击Tops,我的商品在购物车边栏中仍然不可见。 [差]





4-接下来,我点击下装,项目显示正常。





在购物车不可见的所有情况下,我可以将https添加到URL,购物车加载就好了。任何人都可以帮我弄清楚为什么我的会话在http和https之间丢失了?



除了sID之外,我的所有后端网络cookie设置都设置为no。 / p>

此外 - 当用户登录时,购物车项目总是显示在右侧。如果他们是客人,那就太麻烦了。



谢谢大家,如果你需要我发布任何代码让我知道。



wwwdotlylifdotcom



编辑:这是我在firebug中的cookie会话的截图(不完全确定我在看什么)。希望这可以帮助。



这是我在magento中的会话设置:我已经尝试过打开和关闭这些设置。





编辑!



此问题实际上已缩小为缓存问题。我们发现当转储/删除缓存时,网站正常工作。但经过几分钟的冲浪,问题再次发生。有人有什么主意吗? (我应该更改问题标题吗?)



我正在使用来自TinyBrick的名为Lightspeed的模块,似乎新的缓存选项正在弄乱我们的网站。 =(我很快就会与他们联系。



**编辑Tinybricks出色的支持帮助了我们。感谢您的所有建议。

解决方案

Tinybricks出色的支持帮助了我们。感谢您的所有建议。这是一个基于缓存的本地化问题和一个名为Lightspeed的模块。


I've searched high and low for a solution to this, with no luck. My host told me they are too busy to help.

Magento 1.4.2 // SSL cert

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

2- Next, I click home, and my items are no longer visible in cart sidebar. [bad]

3- Next, I click "Tops", and my items are still not visible in cart sidebar. [bad]

4- Next , I click "Bottoms" and the items show just fine.

In all cases where the cart isn't visible, I can add https to the URL and the cart loads up just fine. Can anyone help me figure out why my session is being lost between http and https?

I have all my backend web cookie settings set to "no" except for sID.

Also- When a user is logged in, the cart items ALWAYS show on the right. It's only screwy if they're a guest.

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

wwwdotlylifdotcom

EDIT: Here is a screenshot of my cookies session in firebug (not exactly sure what I am looking at). Hope this helps.

And here is my Session settings in magento: I have tried just about every variation of turning these on and off.

EDIT!

This issue has actually been narrowed down to a cache issue. We found out that when the cache is dumped/deleted, the website works properly. But after a few minutes of surfing the problem happens again. Does anyone have any idea? (And should i change the question title?)

I'm using a module called Lightspeed from TinyBrick, and it seems the new cache options are messing with our site. =( I'm contacting them shortly.

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

解决方案

Tinybricks excellent support helped us out. Thanks for all of your suggestions. This was a localized problem based off cache and a module called Lightspeed.

这篇关于从http切换到https时,Magento会话丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆