G
Guest
Hi,
In my asp.net app I am using this code:
FormsAuthenticationTicket ticket =
new FormsAuthenticationTicket(
1,
lcred.UserName,
DateTime.Now,
DateTime.Now.AddMinutes(ldExpiration),
false,
lsRoles
);
lsRoles is a string with all roles (separated with "|").
When I later use the HttpContext.Current.User.IsInRole method it works fine
on my developer machine but not on my production machine... what can be wrong.
Thanks
In my asp.net app I am using this code:
FormsAuthenticationTicket ticket =
new FormsAuthenticationTicket(
1,
lcred.UserName,
DateTime.Now,
DateTime.Now.AddMinutes(ldExpiration),
false,
lsRoles
);
lsRoles is a string with all roles (separated with "|").
When I later use the HttpContext.Current.User.IsInRole method it works fine
on my developer machine but not on my production machine... what can be wrong.
Thanks