P
Paul W
Using Forms Authentication, I'd like to 'piggy-back' a small piece of
information onto the authentication cookie.
I tried the following, but this seems to invalidate the cookie, so
IsAuthenticated becomes false:
System.Web.Security.FormsAuthentication.SetAuthCookie(Username, False)
Dim secCookie As HttpCookie
secCookie = HttpContext.Current.Response.Cookies("Tenni") ' "Tenni" is
the name of the auth cookie
secCookie("F") = myFacilityID.ToString '<<<piggy-back info
Any ideas out there? Thanks,
Paul.
information onto the authentication cookie.
I tried the following, but this seems to invalidate the cookie, so
IsAuthenticated becomes false:
System.Web.Security.FormsAuthentication.SetAuthCookie(Username, False)
Dim secCookie As HttpCookie
secCookie = HttpContext.Current.Response.Cookies("Tenni") ' "Tenni" is
the name of the auth cookie
secCookie("F") = myFacilityID.ToString '<<<piggy-back info
Any ideas out there? Thanks,
Paul.