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

Formauthentication timeout in MVC 5????

$
0
0

Hi,

I am setting timeout for form authentication like below after checking with database on login.

FormsAuthenticationTicket authenticationticket = new FormsAuthenticationTicket(1, model.UId, DateTime.Now, DateTime.Now.AddMinutes(2),false, userrecords);

But timeout doesn't work.

Do we need more setting in MVC5?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



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