If you use msession, this should all just work.
$sid = session_id();
$array_users = msession_get_array('users');
$array_globals = msession_get_array('globals');
$array_my = session_get_array($sid);
Msession does not handle classes all that well. It uses discrete variables.
--
PHP
btw, i'm writing a session module like this in php
atm, but it would be much better, if it were programmed
directly into the core. I'm i total C-Newbie, so i'm not able
to do it myself. If anyone is interested in doing it, i'd
highly appreciate it.
Regards, Michael
"Michael Virnstein" <[EMAIL PR
a better solution, in my opinoin,
is some sort of grouping mechanism.
this way i can set up n different session groups.
every session in a group shares a set of variables so the have their own
scope.
i can register a session in m groups, so my session gets access to all
variables of the groups, i
Your work around is how Im doing things at the moment (very annoying
picking up and dropping sessions). PHP's limitation currently is that it
can only handle one session at a time, and as thus, only one set of session
variables.
What Im hoping for is (at some point) there to be a multiple session
Yeah it was disscuessed that the session modules could define and handle
$_APP so that would be globals for all sessions.
a work around would be to do something like this
$oldsession_id = sessoin_id();
session_id(1);
session_start();
$var = $_SESSION['var'];
session_desetroy();
session_id($oldse
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...
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