session_unset(3) php man page | unix.com

Man Page: session_unset

Operating Environment: php

Section: 3

SESSION_UNSET(3)							 1							  SESSION_UNSET(3)

session_unset - Free all session variables

SYNOPSIS
void session_unset (void )
DESCRIPTION
The session_unset(3) function frees all session variables currently registered.
RETURN VALUES
No value is returned.
NOTES
Note If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset(3) to unregister a session variable, i.e. unset ($_SESSION['varname']);. Caution Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SES- SION superglobal. PHP Documentation Group SESSION_UNSET(3)
Related Man Pages
session_destroy(3) - php
session_start(3) - php
sessionhandlerinterface.read(3) - php
sessionhandler(3) - php
_env(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch