MobileFormsAuthentication Login Status

A

Alex Maghen

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

Walter Wang [MSFT]

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 ([email protected], 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top