php - What does session_register_shutdown actually do? -


from official php manual:

session_register_shutdown — session shutdown function

registers 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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -