在子域中使用cookie的会话管理 [英] Session management using cookie in subdomain
本文介绍了在子域中使用cookie的会话管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友们,
在网站上创建会话中的用户日志并将其存储在cookie中。
会话时已清除,我正在重新创建具有cookie值的会话。
我在
创建cookie值www.xyz.com
我可以在其子域中使用相同的cookie值,但是使用不同的应用程序来使用其cookie值创建会话。
abc.xyz.com
请指导。
我尝试过:
当用户登录时,我将会话值存储在cookie中。
Dear Friends,
In the website when user log's in session is created and stored in cookie as well.
When the session is cleared, i am recreating the session with cookie value again.
I am creating the cookie value in
www.xyz.com
Can i use the same cookie value in its sub-domain but it different application to create the session using its cookie value.
abc.xyz.com
Kindly guide.
What I have tried:
I am storing the session value in cookie when an user logs in.
推荐答案
根据子域保存cookie并使用相同的域名。
我自己得到了解决方案。
Save the cookies based on the subdomain and use the same.
I got the solution on my own.
这篇关于在子域中使用cookie的会话管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文