2.0 Membership provider Issue

K

krs

Hi,

I'm using the asp.net 2.0 membership provider in my application. I'm hoping
to be able to change the applicationName value that is used to determine
which users the current application will use dynamically in my code, so I
have tried this approach in my global.asax.cs:

protected void Session_Start(Object sender, EventArgs e)
{
//setting this means that aspnet membership applies only to this
company
Membership.ApplicationName = "/" + CompanyId.ToString();
Roles.ApplicationName = "/" + CompanyId.ToString();

}

Has anyone done anything similar and had it worked correctly?

All the best
Kieran
 

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,774
Messages
2,569,596
Members
45,132
Latest member
TeresaWcq1
Top