Re: Recommendation for Unique URL
| From: | Al | Date: | Mon, 27 Oct 2003 02:29:47 +0000 |
| Subject: | Re: Recommendation for Unique URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167665@lists.php.net to get a copy of this message | ||
> What is the best approach to the unique page ID? I thought I would store
the
> dept. mgrs. email address and the session ID in a db, and use the session
ID in
> the URL. Do I even need the mgr's email address? Is another approach
better?
> What have you used?
I'd concatenate the employee's email and manager's email, and then use an
MD5 hash of it as the unique string. i.e:
$unique_id = md5 ( $employee_email . $manager_email );
For more info on what MD5 is, see
http://us2.php.net/manual/en/function.md5.php
Cheers,
Al