Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > User.Identity.Name

Reply
Thread Tools

User.Identity.Name

 
 
Nedu N
Guest
Posts: n/a
 
      12-08-2003
Hi,

I am using Forms authentication -in which -
I am trying to use User.Identity.Name, i am getting the user name in this
field even after i logout (i.e, FormaAuthentication.SighnOut(),
and also i am trying to use User.Identity.IsAuthenticated for checking
whether the User has logged in or not.

I don't want to store the user name in Session variable once the User logs
in.

I want to make use of User object properties for getting to know the uswr
name and whether user has logged in or not.

Is this possible?

Thanks
Nedu


 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      12-09-2003
Hi Nedu,

SignOut method will remove the cookie item related to form authentication,
and this will be effect for next request. For current request ( when you
call SignOut), User.Identity is still valid.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments