Hi, PHP is 'dumb'. It doesn't know about a global scope, or your logged users in or your current user. This task is up to be implemented in user space.
- Markus On Thu, Apr 25, 2002 at 02:29:03PM +0100, Dan Hardiker wrote : > While were talking about session advancement... has anyone ever thought of > adding shared sesssions? Consider the following scenario: > > I have 3 sets of variables: > > 1. Global Scoped - Variables accessed and altered by anyone entering my > site. EG: a "currently online" array which stores the a list of active users > 2. Logged in Scoped - Variables accessed by *anyone* logged in. EG: if > you cache the database stuff in a session then if one user updates the > cache the often you want all the logged in users to see that change without > having to requery the db > 3. Individual Scope - Variables specific to this user (eg: whats my name, > my last ip, when did I last do anything meaningful). > > Being able to split those scopes up into separate variables would be great > and being able to do something along the lines of: > > $session->global = array of global variables > $session->loggedin = 2nd scope > $session->personal = personal variables > > and then have the session module manage those 3 sessions individually. > > > In short - it would be cool if a script could (easily) have access to a > multitude of sessions and keep them segregated. > > -- > Dan Hardiker [[EMAIL PROTECTED]] > ADAM Software & Systems Engineer > First Creative Ltd > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc "Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)" -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php