I'm using in my asp.net web site, a singleton class to the users information.
I would like to know, if I put this web site online, when the users start to login, this this class will store the data to only one user.
This is my class:
public class User
{
private static User instance;
private User(){}
public static User Instance
{
get
{
if (instance == null)
{
instance = new User();
}
return instance;
}
}
public Institute LoggedInstitute { get; set; }
public List<Institute> Institutes { get; set; }
}