Using .NET 2.0 Profiles with Custom Authentication

M

Mahesh Prasad

Hi

When Profiling is enabled in ASP.NET 2.0, it automatically adds either
a WindowsIdentity or GenericIdentity object, depending on the
authentication type configured in web.config. If the user is anonymous
it creates a GUID and sets it as "UserName" and also adds
"IsAnonymous=true" in the SettingsContext .

We have an existing Authentication Service, which drops an "AUTH"
cookie once user is authenticated. And I want to use this cookie to
identify if an user is anonymous or authenticated. I did not find any
way to add this information (username and the IsAuthenticated flag)
into the Profile SettingsContext.

Is there a way to do it ?

Thanks
Mahesh
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top