With older versions of PHP you can use this snippet for the same effect:
<?php register_shutdown_function('session_write_close'); ?>
(PHP >=5.4.0)
session_register_shutdown — Session shutdown function
Registers session_write_close() as a shutdown function.
This function has no parameters.
No value is returned.
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'); ?>