Re: [PHP-DB] Call Function On Session Destroy

2006-09-18 Thread Chris

Manoj Singh wrote:

Hi Guys,

I have a question.

Is it possible to call any function when the session expires in PHP? I want
to do some database deletions whenever the session expires.


You need to set your own session handlers:

http://php.net/session_set_save_handler

Then you can do whatever you like (for example 
http://www.zend.com/codex.php?id=1126&single=1)


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Call Function On Session Destroy

2006-09-15 Thread Manoj Singh

Hi Guys,

I have a question.

Is it possible to call any function when the session expires in PHP? I want
to do some database deletions whenever the session expires.

Thanks & Regards
Manoj