Session Functions
PHP Manual

session_abort

(PHP 5 >= 5.6.0)

session_abortDiscard session array changes and finish session

Description

bool session_abort ( void )

session_abort() finishes session without saving data. Thus original values in session data is kept.

Return Values

This function returns TRUE if a session was successfully reinitialized, otherwise FALSE.

See Also


Session Functions
PHP Manual