Re: Call Function On Session Destroy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux