Session[“variable”] getting overwritten when multiple users logged in RRS feed

  • Question

  • 'm facing an Issue with HttpContext.Current.Session["variable"]. It's getting overwritten when multiple users are logged in my web application at the same time in the same network. and the application is hosted on windows azure.

    my method to get the user logged in is this:

      public static string GetLoginUser()
    Login login = (Login)HttpContext.Current.Session["Login"];
    return login.User;

    when 2 or more users are using the application in different computers and different session one Session["Login"] prevail above all the others. But it doesn't go against the Session["variable"] scope?

    Wednesday, March 20, 2019 10:51 PM


All replies