Hi the following lump of code throws a null exception because the .Current value is set to null (line 6). Could someone please help me understand why? I've taken this from a previous working project..
HttpContext.Current.User.Identity.Name loses value
Hi,
I am using HttpContext.Cur rent.User.Ident ity.Name to get a user id
from a web application. I then use that as part of a name of a cookie
I'm writing. 30 minutes later I do a refresh of this page and try to
access that cookie. However, because I am using
HttpContext.Cur rent.User.Ident ity.Name to get the user id to know what
that cookie name even is, I am having problems because apparently
after 30 minutes...