norashlea
-
4/4/2006 5:10:46 AM
Clear Session Variables on SignOut
Hello again,
I have two different secure areas on my site. One "secure" login should be able to access both areas, but the other "secure" login should access only it's own area. So I created a Role that that the double-secure-area logins will be assigned to. On authentication, if the UserID belongs to this Role, I set a session variable, and then test for its existence on Page_Load of the Master page for this section.
The problem is, if one of the double-secure-area logins has been logged in (ie, the Role session variable is created), and then logs out, and then a single-secure-area user logs in during the same session, the Role session variable still exists so they get access to the area!!
How can I clear all session variables with OnClick of the SignOutButton?
Thanks, Sharon.
|