Hello. Not long ago, faced with a strange problem on the website — there is asp.net mvc project, there is single-tone class SiteUser through whom the entire work with services.
if authorization is successful, the current user is stored in the session collection:
static readonly string sessionKey = "SiteUser";
asked October 10th 19 at 05:34