0

I'm using the code from that topic's accepted answer ASP.NET MVC RememberMe

But, after log in I reopen the browser and I'm not logged in. Why ?

Community
  • 1
  • 1
Tony
  • 12,405
  • 36
  • 126
  • 226

1 Answers1

1

To make this answer-able:

Make sure the browser you're using isn't setup to delete cache/cookies/session information on close (or at least add an exemption for local testing). also, make sure you're not browsing in privacy/incognito mode as that will delete information on close as well.

For a short-term work-around, you can keep the browser window (at least one tab) open and let visual studio open a new tab with each compilation. That should keep session information between tab views (until you inevitably close the window).

Brad Christie
  • 100,477
  • 16
  • 156
  • 200