PHP Velho Oeste 2024

session_register_shutdown

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

session_register_shutdownFunción de cierre de sesiones

Descripción

session_register_shutdown(): void

Registra session_write_close() como una función de cierre.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

No devuelve ningún valor.

Errores/Excepciones

Emite un error de nivel E_WARNING si la función de cierre falla.

add a note add a note

User Contributed Notes 1 note

up
2
Rouven Weling
11 years ago
With older versions of PHP you can use this snippet for the same effect:

<?php register_shutdown_function('session_write_close'); ?>
To Top