Re: Question about user management...

From: Date: Wed, 12 Mar 2008 23:04:24 +0000
Subject: Re: Question about user management...
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-271458@lists.php.net to get a copy of this message
At 10:20 PM -0700 3/10/08, Mike wrote:
Wait, what? You are defining user role ids as MD5 hashes of UUIDs created from random numbers that change on every request? Am I missing something or is this completely insane advice?
Mike: What you're missing is that it doesn't matter. Each session generates one ID for each type of user. It doesn't matter if the user comes back tomorrow and the actual number is different than it was yesterday. The point is that the number used for that user during that time is defined uniquely. Granted, this is a little disturbing -- but my second suggestion to use a string is a little less disturbing. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#271458) next »