Have this ASPNET Applcation on dev server.
On WindowsAuthentication_OnAuthenticate
Getting the user id from database and matching with windows auth user
id, if match
assign to mUserIdentity get from authtickets and add to Current http
context.
Problem is.. when couple people hit the site on server they all getting
the same
userID displayed..
What am i doing wrong...
formsAuthTicket = new FormsAuthenticationTicket(1, mUserIdentity,
DateTime.Now, DateTime.Now.AddMinutes(60), false, sUserRoles);
mEncryptedTicket =
FormsAuthentication.Encrypt(formsAuthTicket);
HttpContext.Current.Cache.Add("authid", mEncryptedTicket, null,
DateTime.Now.AddMinutes(60), TimeSpan.Zero, CacheItemPriority.High,
null);
On Application_AuthenticateRequest i assign the curren user to my user
get object
HttpContext.Current.User = MyPrincipal;
why is keep same user ID for everone