Is there room for issue in the following code in terms of multiple users of the same web application? I mean, I know that a purely static string will be shared across all sessions for a single ASP.NET application, but given that this explicitly refers to the
public static string Mode
var value = HttpContext.Current.Session["Mode"];
return (value ?? string.Empty).ToString();
HttpContext.Current.Session["Mode"] = value;
HttpContext.Current always returns the context of the current request (if there is a current request).
Since each user will be executing a different request, each context will be different.