session_unset
void session_unset(void)
Unsets all variables.
Returns:
void
Description:
Unsets all variables associated with a session. This is not the same as session_destroy() as it still maintains the session state.
Version:
Existing since version 4.0
Example:
Unregister all session variables
session_start(); session_register(array("counter","user")); session_unset(); |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.