I have bool variable in my session state. When I try to get this value I get for all users. When I login like another user who doesn`t have initialize Session state, I got same value.
bool aa = (bool)Session["playedSRB"];
I was thinkin开发者_如何学运维g this is related to the user.
I don't believe the session state cookie is associated with who is logged in.
ASP.NET_SessionId is the session cookie.
.ASPXAUTH is the authentication cookie (login).
..It might not be your problem, but I'd suggest testing with true instead - a null value cast to bool converts to false.
精彩评论