如何在登录用户时在多个站点中保持会话 [英] how use keep session in many site when login user

查看:81
本文介绍了如何在登录用户时在多个站点中保持会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个网站。对于exmaples www.host1.com,www.host3.com,www.host2.com要进入网站,您必须登录(输入用户名和密码)当我需要登录网站时。将输入没有登录提示音的其他站点。 (您的用户名和密码在每个用户的所有网站上都是相同的)请帮助解决此问题如何使用session []所有网站

I have three sites .for exmaples www.host1.com, www.host3.com, www.host2.com To enter the site you must login(enter username and passsword) When I need to login to a site. Other sites with no login prompt tone will be entered. (Your username and password is the same on all site for each user) please help with this problem how use session[] all site

推荐答案

使用Cookie。会议无济于事。如果您想分享会话,请参阅以下示例将对您有所帮助。



http://blogs.msdn.com/b/toddca/archive/2007/01/25/sharing-asp -net-session-state-across-applications.aspx [ ^ ]
Use Cookies. Sessions will not help. If you want to share a session see the following example will help you.

http://blogs.msdn.com/b/toddca/archive/2007/01/25/sharing-asp-net-session-state-across-applications.aspx[^]


这篇关于如何在登录用户时在多个站点中保持会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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