[英]How to create a session between client and self-hosted WCF service
My goal is to keep track of clients with cookies and their sessions. 我的目标是跟踪使用cookie的客户及其会话。 This is needed because I don't like WCF's builtin authentication process, where they are just give the generic login popup in the browser [ 1 ].
这是必需的,因为我不喜欢WCF的内置身份验证过程,在WFM的内置身份验证过程中,只是在浏览器中提供通用的登录弹出窗口[ 1 ]。 I'm looking to have a login page and give the user the capability to logout.
我正在寻找一个登录页面,并为用户提供注销功能。 I don't want to use IIS at all to host my service.
我根本不想使用IIS来托管我的服务。 Is HttpContext the only way to maintain sessions/cookies?
HttpContext是维护会话/ cookie的唯一方法吗? Is this possible in a selfhosted WCF Service?
自托管的WCF服务是否有可能? Is this possible with
WebHttpBinding
? WebHttpBinding
有可能吗? The closest post I could find to this one was: Sessions in self-hosted WCF services but it was unsatisfactory. 我能找到的最接近的帖子是: 自托管WCF服务中的会话,但效果不理想。
I answered my own question here: 我在这里回答了自己的问题:
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/67a1ea91-af62-44f8-9a6b-0982c7d05da8 http://social.msdn.microsoft.com/Forums/zh-CN/wcf/thread/67a1ea91-af62-44f8-9a6b-0982c7d05da8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.