[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

MobileFormsAuthentication Login Status

Alex Maghen

5/22/2007 8:32:00 PM

Is there a programmatic way to determine the login status of a user and the
Username with which they logged in?
1 Answer

wawang

5/23/2007 9:27:00 AM

0

Hi Alex,

You can still use HttpContext.Current.User to determine the login status:

if (HttpContext.Current.User != null &&
HttpContext.Current.User.Identity.IsAuthenticated) {
string userName = HttpContext.Current.User.Identity.Name;
}


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.