Posted on: 7/22/2015 2:59:07 AM | Views : 827

I have session issue. 30% of user login with wrong identity. After login his identity is overridden by last user who logged in. Example, if John login at 12pm, then when Marry login at 12:01 pm,her session Variable still stored john's information. Someone suggested me if there's static variable inside of session. So here is the code I can provide more if needed string sFirstName = UIState.GetSessionStateString(ENUMS.SessionState.LoginStateCurrentUserFirstName); public partial class ENUMS { public enum SessionState { LoginStateCurrentUserFirstName } } public partial class UIState { public static string GetSessionStateString(ENUMS.SessionState iStateItem) { return System.Convert.ToString(System.Web.HttpContext.Current.Session[GetUIStateID(iStateItem)]).Trim(); } public static string GetUIStateID(ENUMS.SessionState iStateItem) { return S ...

Go to the complete details ...