Re: How to use Session End??

From: Date: Wed, 08 Nov 2000 20:37:27 +0000
Subject: Re: How to use Session End??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24380@lists.php.net to get a copy of this message
In article <20001105075249.16953.qmail@web3702.mail.yahoo.com>, thomasedisonjr@yahoo.com ("Thomas Edison Jr.") wrote: > I would like to pass some commands when a user's > session ends. How can i do that? How does the code > execute something on session end? You may be able to exec("foo &") or to exec() a shell script that forks. Folks have had differing experiences here, and nobody has ever tied it down to any particular cause AFAIK. > Also, is it possible to flush out rows from a mysql > table after it has reached a certain number of given > rows? It would perhaps be easier to do it by timestamp than by number of rows... But, at worst, you could write a PHP script to do a "select ... limit xxx" and then delete all the rows that matched. I don't think MySQL has any sort of automated purging facility though. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#24380) next »