强制注销用户 [英] Logout user forcefully
问题描述
你好朋友,
我正在一个项目中,我将用户重定向到与现有站点不同的站点.问题是我想控制由我的站点转移到另一个站点的用户.我的意思是我想从重定向到的站点中注销它们.例如:我的网站是abc.com.我有另一个将用户重定向到的网站xyz.com.我想按照abc.com上的逻辑将用户从xyz.com中注销.我该怎么做?
我正在使用Asp.net,C#和Adobe Connect API.
请提出解决方案.如果我的问题不清楚,请告诉我.我会更新我的问题.
谢谢,
Jagjot
Hello Friends,
I am working on a project in which I am redirecting users to a different site from my existing site. The problem is that I want to have a control over the users who are transferred by my site to another site. I mean I want to log them out from the site they are redirected to. For example: my site is abc.com. I have another site xyz.com to which I am redirecting users. I want to log users out of xyz.com as per a logic working at abc.com. How I can do this??
I am using Asp.net, C# and adobe connect api.
Please suggest a solution. Let me know if my question is not clear. I''ll update my question.
Thanks,
Jagjot
推荐答案
如果您使用的是表单身份验证,请使用SignOut方法
http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.signout.aspx [ ^ ]
还要确保清除会话以防止重新进入
If you are using Forms Authentication use the SignOut method
http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.signout.aspx[^]
Also make sure to clear the session to prevent reentrancy
这篇关于强制注销用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!