Hi i would like to know if somebody knows in detail how does sessions works with PHP when a handler has been defined. I mean, once i call session_start() what happens ?
Afaik the handler should deal with open(), close(), read() write(), destroy() and gc(). My question is, after calling session_start () which one of the functions is called ? open () ? open () + read () ?
My question is because i see that read() requires the id already to exists so i suppose that before that php has already generated it (or received it from the cookie). Also when does gc () is called ?
I'm having some problem understanding a save handler for a database, that's why the questions. Thanks in advance.