ASP's Session_OnEnd function?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

ASP's Session_OnEnd function?

Post by Coco »

I was wondering if there was a php equivalent to this?
basically im wanting to perform a script when the session is ended, be it by timeout or closure of the browser. Obviously its easy enough if the user logs out maually, but otherwise how?

im not asking how to start/end sessions, or how to store session variable.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you can write your own session-handler
http://php.net/manual/en/function.sessi ... andler.php
unfortunatly you cannot call the default implementation from within your functions (afaik).
Post Reply