how can php applications use session control to track multiple users?

From: Date: Fri, 23 Aug 2002 19:33:39 +0000
Subject: how can php applications use session control to track multiple users?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-113841@lists.php.net to get a copy of this message
Dear Experts, I know you can use session_register to register varialbes, but how do you use sessions for multiple users? Ex. $valid_user = $username; // let's say $username has "JSmith" session_register("valid_user"); but if another user (SWhite) logins, then the valid_user now has the value of "SWhite" and the earlier user "JSmith" is gone. So, how do you make the sessions looks like: JSmith|s:6:"JSmith";SWhite|s:6:"SWhite"; Is this the way how people usually implment to track multiple users? Any hints would be greatly appreciated! --Wo

« previous php.general (#113841) next »