A
Alan Mendelevich
Hi,
I'm trying to build a login system where users login via web form, but then
they are logged in as they would with windows authentication only not
involving chalenge/response or basic authentication. I was able to login
user via LogonUser() function and to get WindowsIdentity and
WindowsPrincipal objects. But when I assign WindowsPrincipal object to the
HttpContext.Current.User property it get's assigned
(HttpContext.Current.User.Identity.Name becomes the name of the user and
IsAuthenticated becomes true) but lasts only for the current request. For
the next request HttpContext.Current.User.Identity.Name is Anonymous and
IsAuthenticated is false.
What should I do for this authentication to persist across requests?
Thanks in advance for your help!
Best regards,
Alan Mendelevich
I'm trying to build a login system where users login via web form, but then
they are logged in as they would with windows authentication only not
involving chalenge/response or basic authentication. I was able to login
user via LogonUser() function and to get WindowsIdentity and
WindowsPrincipal objects. But when I assign WindowsPrincipal object to the
HttpContext.Current.User property it get's assigned
(HttpContext.Current.User.Identity.Name becomes the name of the user and
IsAuthenticated becomes true) but lasts only for the current request. For
the next request HttpContext.Current.User.Identity.Name is Anonymous and
IsAuthenticated is false.
What should I do for this authentication to persist across requests?
Thanks in advance for your help!
Best regards,
Alan Mendelevich