Last post Feb 09, 2015 02:50 AM by Michelle Ge - MSFT
Feb 05, 2015 08:50 AM|ycu2007110138|LINK
I'm new to Owin, and I am focus on a third-party login with it currently. Below code,
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
ExpireTimeSpan = System.TimeSpan.FromMinutes(1),
LoginPath = new PathString("/Account/Login"),
LogoutPath = new PathString("/Account/LogOff")
As I know, a field named 'expires' will include into token cookie. Consider this, once I logged in and close browser, then re-open browser and locate to my website again, the token cookie is still alive. This is really dangerous for users who use public
And it seems that to clear cookie while closing browser, the only way is remove 'expires'. So here is the question. Is there any way to remove 'expires' for my situation?
Thank you guys in advance.
Feb 09, 2015 02:50 AM|Michelle Ge - MSFT|LINK
So far as I know, if you want to delete a cookie with expires property, you can try to use jquery to delete the cookie.
There is a thread about how to delete the cookie with expires, please refer to the link below:
Hope it's useful for you.