Forum Moderators: phranque
Welcome to WebmasterWorld!
I don't think this works anymore -- This functionality was removed from recent browsers because of security problems.
The modern method is to set a cookie after successful login. Then when a visitor returns, check the cookie. If it is present, valid, and recent enough, then by-pass the login requirement. This is the technique used for "Remember me on this computer" - type options you see on Web sites. The contents of the cookie can be encoded and checksummed to prevent bad guys from inventing their own as a way to by-pass your authentication.
Jim