I'd like to establish a session initialization function that creates some tables in a DB for that user that will be dropped later on to clean up after the user.
I've been looking at session_set_save_handler() as a possibility. The PHP documentation makes it sound like it ought to be able to do what I want, but doesn't make clear how one makes use of this. The example in the doc shows:
session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
Do you create this as an include file and include it in all your scripts that will make use of the sessions? Will the "open" function then be called upon session_start()?