Password Protected Logon



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.


* * * * * * * * code snippet * * * * * *

<p>Your login Status is:

If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Response.Write "<b>You are logged is as: " & Session("UID") & "</b>"
End If

* * * * * * * * end code snippet * * * * * *

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Logon displaying Name instead of User ID 2
password-protected web page 2
Increasing time outs 2
Logout Script 2
How can I redirect to a URL? 0
Need some PWA help 0
include file not found? 2
Access Login Function 0