0

I am using .NET MVC 5. I have the following code:

 <authentication mode="Forms">
  <forms slidingExpiration="true" timeout="1" loginUrl="~/User/Login" />
</authentication>
<sessionState timeout="1" />

As a test, I set the timeout to 1. To my understanding, if the session is idle for 1 minute, it should automatically redirect the user to the Login page but nothing is happening. Any idea on what I may have missed?

Nate Pet
  • 44,246
  • 124
  • 269
  • 414
  • 1
    Please [see](https://stackoverflow.com/a/22365954/1797425) if that answer helps you out? – Trevor Aug 02 '19 at 18:57
  • Could you provide code how you use forms authentication on server? How do you set auth cookie during login? – Alexander Aug 02 '19 at 21:47

0 Answers0