Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

MVC5 Application Cookie expires when session ends

$
0
0

I have a MVC5 web application up and running on my dev machine with IISExpress .

In the Startup.Auth I have overrideen the cookie defaults and set an expiration time of 1 day.

When I debug the application and I look up the cookies collection in the browser (firefox)  and I can see the cookies under the localhost node. The Expiration Date of the cookies is set to something like "until end of session". Once the application debugging is stopped and the browser window is closed, the cookies are gone.

Any thoughts would be helpful.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>