You can extend or modify the session class, possibly in conjunction with =
the user (auth?) and storage container class, to extend data saved along =
with the session.
I have e.g. the client IP and user name (if auth is used) saved beside =
the session name and ID and the serialized session data, so it's easy to =
whip up a query to see how many clients are logged in and since when:
1 - created a stored proc to do the insert of session data in an =
extended table: I like it better than putting plain table-acccess SQL in =
PHP
2 - created a new CT_sql class, with a modified ac_store function
+ in that function used global var $REMOTE_ADDR as extra parameter =
for the stored proc,
+ and added some optional fourth parameter (user id) to the call =
signature
3 - created a new user class that would call this->that->ac_store =
passing along the user ID
Hope this helps
gaetano
> -----Messaggio originale-----
> Da: php...@li...
> [mailto:php...@li...]Per conto di Jan
> Inviato: lunedi 16 febbraio 2004 7:57
> A: php...@li...
> Oggetto: [Phplib-users] Use phplib session in cgi scripts
>=20
>=20
> Hi All,
>=20
> yes, it's a strange topic but it's really a problem:
>=20
> I have a webserver, which displays mrtg cgi sites.
> As we're migrating our internal portal site to a new auth system with=20
> phplib, we have the problem to integrate these cgi sites.
> The first idea was to work with the user and the session id from the=20
> database, but in the database is no direct connection between=20
> a userid=20
> and a session.
>=20
> Has anyone ever thought about this or knows a possible=20
> solution for this?
>=20
> Thanks in advance and have a nice weekend
>=20
> Jan
>=20
> (Hell knows why my exchange thinks this list isn't valid. So=20
> I'm using a=20
> new account.)
>=20
>=20
>=20
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick
> _______________________________________________
> Phplib-users mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phplib-users
|