如何在登录用户时在多个站点中保持会话

编程入门 行业动态 更新时间:2024-10-25 06:33:46
本文介绍了如何在登录用户时在多个站点中保持会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I have three sites .for exmaples www.host1, www.host3, www.host2 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。会议无济于事。如果您想分享会话,请参阅以下示例将对您有所帮助。 blogs.msdn/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. blogs.msdn/b/toddca/archive/2007/01/25/sharing-asp-net-session-state-across-applications.aspx[^]

更多推荐

如何在登录用户时在多个站点中保持会话

本文发布于:2023-07-15 10:29:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110668.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   站点   用户   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!