Re: Global data with session handler

From: Date: Tue, 19 Mar 2002 01:32:28 +0000
Subject: Re: Global data with session handler
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81466@lists.php.net to get a copy of this message
Brad Lafountain wrote:
I was wondering if anyone has ever thought of comming up with a different way of handling the code below. I know that you can use shared memory, but that wont work for win and it wont work for web cluseters using db's to handle their sessions. Also sessions will automatically handle locking of the session info. so you don't need to worry about using shm locking the shm.
Basically you need application level sesssion variable (or application scope persistent variable), right? SRM and session_pgsql supports that. In case of session_pgsql, $_APP can be used just like $_SESSION. All session that has the same session name shares $_APP. (SRM has OO approch for this) Supporting $_APP is easy, if nobody objects I'll add it to files handler or change session module so that all save handler can support $_APP easily. Any comments? -- Yasuo Ohgaki

« previous php.dev (#81466) next »