在 ASP.NET 应用程序之间传递会话数据 [英] Passing session data between ASP.NET Applications

查看:32
本文介绍了在 ASP.NET 应用程序之间传递会话数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几个 ASP.NET 应用程序部署到几台服务器上.如果用户已经通过身份验证,是否有一种标准方法可以重用会话数据或其他一些方法来不要求用户在从应用程序移动到应用程序时登录到下一个应用程序?我希望有一种你们都知道的最佳实践方法.我觉得应该有一些简单的东西我错过了.

We have several ASP.NET applications deployed to a few servers. Is there a standard way to reuse session data or some other method to not require users to log in to the next application when moving from application to application if they've already authenticated? I'm hoping there's a best practices way of doing this that you guys know about. I feel like there should be something easy that I'm missing.

谢谢.

更清楚地说,我想传递的会话中的主要信息是经过身份验证的用户 ID,但也可能是其他一些会话变量.

To be be more clear, the main info in the session that I'd like to pass is the authenticated userid, but possibly some other session variables as well.

推荐答案

您可以为您的应用程序实施单点登录策略.

you could implement a single-signon strategy for your applications.

http://aspalliance.com/1545_Understanding_Single_SignOn_in_ASPNET_20.all

http://blah.winsmarts.com/2006/05/19/aspnet-20-implementing-single-sign-on-sso-with-membership-api.aspx

http://johndyer.name/post/2005/12/Single-SignOn-with-ASPNET-Membership-and-WebServices.aspx

http://msdn.microsoft.com/en-us/library/ms972971.aspx

这篇关于在 ASP.NET 应用程序之间传递会话数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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