php - What does session_register_shutdown actually do? -
from official php manual:
session_register_shutdown
— session shutdown functionregisters
session_write_close()
shutdown function.
so, session shutdown mean? what's difference between session_write_close
, this?
to make clear, function do? when shall use it?
it seems few people using , talking function on web.
this function used actually, there no discussion on internet, found answer source code comments:
/* function registered shutdown function * session_set_save_handler($obj). reason register * shutdown function in case user registered own shutdown * function after calling session_set_save_handler(), expects * session still available.
from: https://github.com/php/php-src/blob/master/ext/session/session.c
and, obviously, compared official manual, states do.
this question looks silly.