Issue with Session("LoggedInUser") - I cant test logging in with two or more users -

  • Thread starter Thread starter jastoh
  • Start date Start date
J

jastoh

Guest
ASP.Net? Everytime a user logs in, the code Session.Add("LoggedInUser",UserEmail.Text)

I tried clicking on the Run button (green Play button in MS Visual web developer Express), logged in as UserA. Then I click on Restart button and logged in as userB , what happens is that the next screen i move for UserB, it shows the details of UserA.

Tried opening the page without clickin on restart, before I even do anything, it shows the screen as logged in for UserA.

Question: I thought Session("LoggedInUser") should be unique? Or am i doing something wrong?
 
Back
Top