Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Administration form
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01519495
Message ID:
01519853
Views:
35
Shawn,

>The Application Administration form (Admin/default.aspx) displays Anonymous User after I log in using MM security.
>
>I have set the RequiresSecurity to true and I am asked to login. After I successfully log in the Logged on User still shows Anonymous User.
>
>This is the code in the default.aspx file that should show me logged in.
>
>
> < %= User.Identity.Name == "" ? "Anonymous User" : User.Identity.Name %>
>
>
>I have checked User.Identity.Name after I log in and it is an empty string.
>
>All of the fields in the Users table for my log in are populated with data.
>
>Anyone know why User.Identity.Name is not being populated?

If your users have Windows accounts and you are using Windows authentication, then the value is automatically populated (try this on your development machine and you should see it populated with your user id). Check out the MM .NET Dev Guide section "Authentication in ASP.NET Applications" fo details.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform