Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session

Status
Not open for further replies.

KryptoS

Programmer
Feb 7, 2001
240
BE
Hey,

I was testing my website and found the following bug:

eg.

not all users have the same rights on my website. When a normal users login I set Session("user") = 1, when a admin logs in I set Session("user") = 2. But when I login with a normal user and visit a certain webpage, then log out, and log in with the admin, than visit that page again the Session("user") changes back too 1.
When I first login as an admin, visit a page, log out and relogin as a normal user and visit that page again, the session chang back too 2.

The problem can be solved when I delete my tempory internet files when I log out, but isn't there another way?

somebody can help me?
 
When you log out, do you abandon the session? (Session.Abandon). This should end the session completely, so that when you log back in, all session variables will be new and not holding the old values. Try it and see if it helps.
 
I think Juanita's hit it on the head - your session cookie is still active at the client.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top