Re: Addition to session-module (patch included)

From: Date: Thu, 25 Apr 2002 12:41:56 +0000
Subject: Re: Addition to session-module (patch included)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-83315@lists.php.net to get a copy of this message
Hi, > right now the session module can "only" store one cookie (or > one info in trans-sid) my patch extends that to one > user-defined variable so that: I am not quite sure whether I understood what you are trying to do, but assumingly you have 2 frames: +---------------+ | foo | +---------------+ | bar | +---------------+ what's wrong about keeping all session-related data in an array? $data["foo"]["counter"]; $data["bar"]["counter"]; and accordingly: foo.php ======= <?php echo "Counter is now" . (++$_SESSION['foo']['counter']) . "<br>\n"; ?> bar.php ======= <?php echo "Counter is now" . (++$_SESSION['bar']['counter']) . "<br>\n"; ?> Or did I miss something? Multiple session IDs only cause confusion. I'm -1. -daniel

« previous php.dev (#83315) next »