跨子域会话问题仅适用于谷歌浏览器 [英] issue with session across subdomain only for google chrome

查看:49
本文介绍了跨子域会话问题仅适用于谷歌浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在跨子域会话时遇到了一个奇怪的问题,仅适用于 google chrome.我有两个子域 a.mydomain.com &b.mydomain.com.如果我首先在浏览器上打开 a.mydomain.com然后打开 b.mydomain.com &从那里登录然后我没有在 a.mydomain.com 中获取会话.但是如果我先从 b.mydomain.co & 登录然后打开 a.mydomain.com 我在 a.mydomain.com 中获取会话.

I've faced a strange issue with session across subdomain only for google chrome. I have two subdomain a.mydomain.com & b.mydomain.com. if I open a.mydomain.com first on browser & then open b.mydomain.com & login from there then I'm not getting the session in a.mydomain.com. But if I login first from b.mydomain.co & then open a.mydomain.com I'm getting the session in a.mydomain.com.

我无法解决这个问题.请帮忙

I'm unable to solve this. Please help

推荐答案

在浏览器中查看会话 cookie.它们的域设置是什么?可能您的网站有不同的 cookie 设置.其中 a 站点正在设置 .mydomain.com cookie,而 b 站点正在设置 b.mydomain.com,防止cookie出现在网站a上.

Look at the session cookies in your browser. What are the domain settings on them? Possibly your sites have different cookie settings. where the a site is setting a .mydomain.com cookie, and the b site is setting b.mydomain.com, prevent the cookie from appear on site a.

这篇关于跨子域会话问题仅适用于谷歌浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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