Fwd: [PHP] Session Mgmt in MySQL - cleanup

From: Date: Thu, 11 Jan 2001 14:25:26 +0000
Subject: Fwd: [PHP] Session Mgmt in MySQL - cleanup
Groups: php.general 
Request: Send a blank email to php-general+get-33994@lists.php.net to get a copy of this message
Trying again - no-one responded 1st time... ----- Forwarded message from Hardy Merrill <merrill@missioncriticallinux.com> ----- > Date: Wed, 10 Jan 2001 21:01:10 -0500 > From: Hardy Merrill <merrill@missioncriticallinux.com> > To: php-general@lists.php.net > Subject: [PHP] Session Mgmt in MySQL - cleanup > > I've adapted a session management script I found on > www.phpbuilder.com for storing session info in MySQL, but > I'm wondering about "garbage collection". Does the system > do the garbage collection itself somehow, or should my > sess_open function call sess_gc directly? > > I noticed that when I invoke session_destroy(), the session > row for that id remains in the database - but the session > data associated with that session id is gone. Is that normal? > I almost expected the whole session row to be removed, > especially since the sess_destroy function does actually > does a DELETE FROM. I don't quite understand how this is > working. > > Is there some documentation somewhere on the "user"(database) > functions for a session management in a database, like what > each function is expecting, and what each should return, and > when each one is called??? > > TIA. > > -- > Hardy Merrill > Mission Critical Linux, Inc. > http://www.missioncriticallinux.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ----- End forwarded message -----

« previous php.general (#33994) next »