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, PHP 8)
session_register_shutdown — 关闭会话
此函数没有参数。
没有返回值。
如果函数调用失败,触发 E_WARNING
级别的错误。
With older versions of PHP you can use this snippet for the same effect:
<?php register_shutdown_function('session_write_close'); ?>