I am relatively new to ASP.NET so please forigve the nubie question!
I am using Session to store user data BUT I am seeing the following:
User1 logs in:
I set the Session["User"] = "user1"
User2 logs in:
I set Session["User"] = "user2"
I thought that Session was specific to the current session but it seems not to be since it seems I am altering the same Session var. I say this because after user2 logs in the Session var changes to Session["User"] = "user2" and anything user1 does is saved
for "user2"??? Certainly I am doing something wrong and maybe misunderstood how to use Session???
Outflank
Member
28 Points
29 Posts
Session question
Dec 16, 2011 03:34 PM|LINK
Hello all:
I am relatively new to ASP.NET so please forigve the nubie question!
I am using Session to store user data BUT I am seeing the following:
User1 logs in:
I set the Session["User"] = "user1"
User2 logs in:
I set Session["User"] = "user2"
I thought that Session was specific to the current session but it seems not to be since it seems I am altering the same Session var. I say this because after user2 logs in the Session var changes to Session["User"] = "user2" and anything user1 does is saved for "user2"??? Certainly I am doing something wrong and maybe misunderstood how to use Session???
Thanks in advance
Marshall