English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need something like and event trigger or something similar to the ASP.NET's OnSession_End event!!!

2006-06-12 13:17:09 · 1 answers · asked by cluisquijada 2 in Computers & Internet Programming & Design

1 answers

No you cannot have events. Sessions are stored within as cache. You cannot crab the last instance of the session in PHP.

But what you could do is do a check wheter that session is registered or not.
http://ca3.php.net/session

You could loop through the session array and check if each session is registered if not, then they are not online. And you can do your actions there. Remember you need a cron or windows scheduler to handle the crons.

Good Luck..

2006-06-12 18:08:05 · answer #1 · answered by ? 6 · 0 0

fedest.com, questions and answers