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
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