0

When I use the following code:

FormsAuthentication.SetAuthCookie(userId.ToString(), true);

an .aspxauth cookie is created with a correct expiration date.

However when i close all instances of the browser and return to the page, I am no longer logged in. I also do not see the cookie in firebug. When I search for the cookie in the browser (I choose remove a cookie, and search for .ASPXAUTH) I do see that it is there.

Any clues for this behavior? Thanks!

In the web.config:

authentication mode="Forms"
forms timeout="28800" 
authentication
Andreas
  • 240
  • 1
  • 2
  • 15

0 Answers0