Jon-Pierre Gentil
jgentil at sebistar.net
Sun Aug 8 03:30:42 EDT 2004
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a way to list all active sessions? And better yet, once you have that list of active sessions, would it be safe to load one, and manipulate it and then save it, with the assumption that it is NOT the active user's session? My goal is that I wish to store a user's privilege levels in session to reduce DB connections to a SQL database. But if an administrator user alters their priv level, I wish it to reflect in the session. This possible at all, or should I rely on loading this information from the database each time? I've looked it over, and I am just not entirely sure what I want to do is possible. I thought about creating a function in the Session module that opens the DB and returns a list of keys, and then closes it... but I wasn't sure if I actually create a session object if it would write out cookies and such. Since BaseSession requires a request object, I get the feeling that what I want to accomplish will be no easy task, probably needing to write a new BaseSession that allows for modification without any client changes/request object. *sigh* Thanks! Jon-Pierre -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iEYEARECAAYFAkEV1qIACgkQOrVFmaIbww4CfACguM+UAHASk8dRIsbC4IVltE34 dKAAnRFBVPmC/VCXoF9St3etxmWyDydI =2nAg -----END PGP SIGNATURE-----
|