R
RICHARD BROMBERG
I have a web page that requires users to Logon with a Password using a
routine I got from Microsoft .
The following code snippet uses javascript and determines if the user has
entered a valid password and permits him to see the page or refuses him .
It works fine, except when the users closes or exits the secured page I need
to reset the Len(Session("UID")) back to zero.
Otherwise the user can exit and subsequently reopen the page without
supplying a password.
Can I use some kind of javascript statement to force the Len(Session("UID"))
back to zero when the user exits or closes the page.
I can read javascript much better than I can write it.
Thanks
* * * * * * * * code snippet * * * * * *
<body>
<p>Your login Status is:
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Else
Response.Write "<b>You are logged is as: " & Session("UID") & "</b>"
End If
%>
</p>
* * * * * * * * end code snippet * * * * * *
routine I got from Microsoft .
The following code snippet uses javascript and determines if the user has
entered a valid password and permits him to see the page or refuses him .
It works fine, except when the users closes or exits the secured page I need
to reset the Len(Session("UID")) back to zero.
Otherwise the user can exit and subsequently reopen the page without
supplying a password.
Can I use some kind of javascript statement to force the Len(Session("UID"))
back to zero when the user exits or closes the page.
I can read javascript much better than I can write it.
Thanks
* * * * * * * * code snippet * * * * * *
<body>
<p>Your login Status is:
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Else
Response.Write "<b>You are logged is as: " & Session("UID") & "</b>"
End If
%>
</p>
* * * * * * * * end code snippet * * * * * *