> Hello,
>
> I have a Net 2.0 app that uses Forms authentication.
> I use a LoginView that contains a Login control to have the user log in.
>
> How do I get the name of the current logged in user?
Context.Current.User.Identity.Name
> Hello,
>
> I have a Net 2.0 app that uses Forms authentication.
> I use a LoginView that contains a Login control to have the user log in.
>
> How do I get the name of the current logged in user?
Context.Current.User.Identity.Name
nospam - 18 Oct 2007 02:28 GMT
Alexey -
Thanks. That worked great.
-bruce
>> Hello,
>>
[quoted text clipped - 4 lines]
>
> Context.Current.User.Identity.Name
nospam - 18 Oct 2007 03:24 GMT
Alexey -
I encountered 1 small problem - after the user logs out, the
Context.Current.Identity.Name
still has the "old" user cached in memory. Is there a way to reload or
cause a refresh?
Thanks in advance,
bruce
>> Hello,
>>
[quoted text clipped - 4 lines]
>
> Context.Current.User.Identity.Name