note 14655 deleted from function.session-id by jimw
| From: | jimw@php.net | Date: | Wed, 02 Jan 2002 11:35:52 +0000 |
| Subject: | note 14655 deleted from function.session-id by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24223@lists.php.net to get a copy of this message | ||
This this a nice way to produce some a unique $sid:
if (!isset($sid)) {
srand((double)microtime()*1000000);
$sid = md5(uniqid(rand()));
}
I hope I'll be useful to someone.
Bye.