admin管理员组文章数量:1297126
I want to know where is the expiration in the cookies with ITfoxtec.
I belived that the expiration in the cookie was in:
Dim cookie As HttpCookie = Request.Cookies("FedAuth")
cookie.Expires
But the time is not correct. I want to know where is the expiration in the cookie.
I want to verify the expiration. Or there are not a way that I can see the expiration cookie.
Edit:
I know how many time is the expiration, but I need get the value in my program, because I don´t know the time.
How can I access to this value?
I want to know where is the expiration in the cookies with ITfoxtec.
I belived that the expiration in the cookie was in:
Dim cookie As HttpCookie = Request.Cookies("FedAuth")
cookie.Expires
But the time is not correct. I want to know where is the expiration in the cookie.
I want to verify the expiration. Or there are not a way that I can see the expiration cookie.
Edit:
I know how many time is the expiration, but I need get the value in my program, because I don´t know the time.
How can I access to this value?
Share Improve this question edited Feb 12 at 14:52 Carlos Alfredo Tejeda Araujo asked Feb 11 at 17:37 Carlos Alfredo Tejeda AraujoCarlos Alfredo Tejeda Araujo 212 bronze badges 2 |1 Answer
Reset to default 0You can optionally specify the session/cookie timeout in the lifetime
parameter in the CreateSession
method. The session timeout is set to the SAML 2.0 authn response token timeout if not specified.
await saml2AuthnResponse.CreateSession(HttpContext, claimsTransform: ClaimsTransform.Transform, lifetime: new TimeSpan(2 ,0, 0));
Sample code: https://github/ITfoxtec/ITfoxtec.Identity.Saml2/blob/main/test/TestWebAppCore/Controllers/AuthController.cs#L77
本文标签: Where is the expires time cookie in ITfoxtec SAML2Stack Overflow
版权声明:本文标题:Where is the expires time cookie in ITfoxtec SAML2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741644029a2390080.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
cookiename=cookievalue
. – C3roe Commented Feb 12 at 12:05