I have defined a static class. In that static class I have the following method.
public static int GetUserId()
{
if(IsUserLoggedIn())
{
return Convert.ToInt16(HttpContext.Current.Session["user"]);
}
return 0;
}
My question is this: When that function run for each user, will each user get a different value? (considering each user session gets different userId for the Session["user"].
I don't know if a static class is useful for this or can cause conflict issues. I am developing in C#/ASP.NET.