[英]Sliding Expiration in ASP.NET web app using claims from STS
Two questions: 两个问题:
1) How/where do I set the lifetime of the session cookie in my web application when using an STS to get claims? 1)使用STS获取声明时,如何/在何处设置Web应用程序中会话cookie的生存期? From what I can tell, it seems I can only do this programmatically in the ServiceConfigurationCreated event. 据我所知,似乎只能在ServiceConfigurationCreated事件中以编程方式执行此操作。
2) How/where can I make sure that the expiration is sliding? 2)如何/在哪里可以确保到期日在滑动?
StsDude, I asked your question here: How can I make a security token automatically expire in a passive STS setup? StsDude,我在这里问您一个问题: 如何使安全令牌在被动STS设置中自动失效?
A code sample for the answer may be found here: http://social.msdn.microsoft.com/Forums/en/Geneva/thread/a048694c-3548-4b4d-9bb3-0589c888fd02 可以在此处找到答案的代码示例: http : //social.msdn.microsoft.com/Forums/en/Geneva/thread/a048694c-3548-4b4d-9bb3-0589c888fd02
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.