Hi All
Is there a way to call a function when a session is closed?
Basically I'm creating a table for each user that logs onto the website, based on their session_id() it may contain over 500 rows of data so when the user closes the browser, I'd like the table to be removed so I dont end up with lots and lots of dud tables.
I can't use temporary tables as they need to be accessible from one page to the next and temp tables are dropped after the connection is closed.
I didn't want to write a whole set of functions for session_set_save_handler, could i just write a function for the $gc? is this garbage collection? Is this called when the session_start() is called?
Any info would be greatly appreciated.
Thanks
Tim