With older versions of PHP you can use this snippet for the same effect:
<?php register_shutdown_function('session_write_close'); ?>
(PHP 5 >= 5.4.0, PHP 7)
session_register_shutdown — Session shutdown function
Registers session_write_close() as a shutdown function.
Această funcție nu are parametri.
Nu este întoarsă nici o valoare.
Emits E_WARNING
if registering the shutdown function
fails.
With older versions of PHP you can use this snippet for the same effect:
<?php register_shutdown_function('session_write_close'); ?>