Re: Re: WAYS OF AUTHENICATION - open discussion
| From: | F�bio Ottolini | Date: | Mon, 06 Nov 2000 21:55:05 +0000 |
| Subject: | Re: Re: WAYS OF AUTHENICATION - open discussion | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23988@lists.php.net to get a copy of this message | ||
You can do this without Javascript:
<?php
srand((double)microtime()*1000000);
$session_id=md5(uniqid(rand()));
?>
Best regards,
Fábio Ottolini
Eletronic.Net
----- Original Message -----
From: "Dean Hall" <hall@apt7.com>
To: <php-general@lists.php.net>
Sent: Sunday, November 05, 2000 7:17 PM
Subject: Re: [PHP] Re: WAYS OF AUTHENICATION - open discussion
(...)
> First, I store all user's passwords as md5-hashed strings in a mysql
> database. (I of course store usernames in the same table as the primary
> key.)
>
> My login page has a JavaScript source file that implements the md5 hash.
> (You can find it at <http://www.apt7.com/js/md5.js> and
> its web-viewable
> version at <http://www.apt7.com/js/md5.txt>.)
(...)