简体   繁体   English

使用STS的声明在ASP.NET Web应用程序中滑动到期

[英]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)如何/在哪里可以确保到期日在滑动?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 本地化ASP.NET资源的过期时间 - Sliding expiration of localized ASP.NET resources 使用ADFS声明的ASP.NET Web应用程序授权 - ASP.NET Web Application Authorization using ADFS Claims 滑动到期的ASP.Net外部Cookie作为会话Cookie出现 - ASP.Net External Cookie with Sliding Expiration appearing as a Session cookie 关于ASP.NET缓存,滑动到期的目的或原因是什么? - In reference to ASP.NET Caching, what is the purpose or reason for sliding expiration? 在ASP.NET页面方法中使用滑动过期进行缓存 - Caching with Sliding Expiration in ASP.NET Page Methods 关于ASP.NET表单身份验证和会话的滑动到期 - Concerning the sliding expiration of ASP.NET's forms authentication and session 在ASP.NET Identity 2中使用角色声明 - Using Claims for Roles in ASP.NET Identity 2 实现我自己的idP / STS以与基于asp.net声明的身份验证一起使用 - Implementing my own idP/STS to work with asp.net claims based authetication 通过web.config启用或禁用asp.net STS - Enable or disable asp.net STS by web.config 如何从启用基于场的身份验证的ASP.NET应用程序或ASP.NET MVC对基于SharePoint声明的Web应用程序进行身份验证 - How to authenticate sharepoint claims based web application from farm based authentication enabled asp.net application or asp.net mvc
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM