downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

session_register> <session_regenerate_id
[edit] Last updated: Fri, 26 Apr 2013

view this page in

session_register_shutdown

(PHP >=5.4.0)

session_register_shutdownSession shutdown function

Description

void session_register_shutdown ( void )

Registers session_write_close() as a shutdown function.

Parameters

This function has no parameters.

Return Values

No value is returned.

Errors/Exceptions

Emits E_WARNING if registering the shutdown function fails.



add a note add a note User Contributed Notes session_register_shutdown - [1 notes]
up
1
Rouven Weling
10 months ago
With older versions of PHP you can use this snippet for the same effect:

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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites