Which unique field to track during a PHP4 Session?

From: Date: Sun, 10 Dec 2000 00:35:55 +0000
Subject: Which unique field to track during a PHP4 Session?
Groups: php.db 
Request: Send a blank email to php-db+get-5134@lists.php.net to get a copy of this message
Hi- I am looking for some security advice with respect to session tracking using the PHP4 built-in session support. Both the Userid and the Username are unique keys in my database, but only the userid is seen in other related tables. With this in mind, when tracking user sessions from page-to-page throughout my site, what variable is "safest" to pass from page to page, so information can be extracted from the database when required? 1)userid 2)username (which is public, seen in message board posts) 3) one of the above AND the user's password. Thanks for any hints in this area! -jason

« previous php.db (#5134) next »