diff --git a/reference/session/functions/session-destroy.xml b/reference/session/functions/session-destroy.xml index e302011b0d..0dea0e8170 100644 --- a/reference/session/functions/session-destroy.xml +++ b/reference/session/functions/session-destroy.xml @@ -1,5 +1,5 @@ - + @@ -18,50 +18,51 @@ the global variables associated with the session, or unset the session cookie. + + In order to kill the session altogether, like to log the user out, the + session id must also be unset. If a cookie is used to propogate the + session id (default behavior), then the session cookie must be deleted. + setcookie may be used for that. + - This function returns &true; on success and - &false; on failure to destroy - the session data. + &return.success; - Destroying a session + Destroying a session with <varname>$_SESSION</varname> ]]> + + + Only use session_unset for older deprecated code + that does not use $_SESSION. + + - - Destroying a session with $_SESSION - - -]]> - - + See also + unset and + setcookie.