You are here: Re: Dropping Temporary Tables « PHP Language « IT news, forums, messages
Re: Dropping Temporary Tables

Posted by Rik on 07/21/07 15:00

On Sat, 21 Jul 2007 15:55:04 +0200, vic <vic at showsec dot <"com>"> wrote:

> Hello,
>
> I'm looking for a technique where I can delete temporary tables that are
> created during a user's login session. If the user logs out, I can
> delete the tables in the logout routine. However, users that do not
> logout have some temporary tables and I'm having to manually delete
> these from the MySQL database.
>
> Can someone suggest a method like a "Session Expires" event where I
> might handle this cleanup activity?

Define your own session handler with session_set_save_handler()
(<http://www.php.net/session_set_save_handler>), and run the logic on
destroying a session and on the garbage collecting of timed out sessions.
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация