From 8ef1175295d932d5b0eec5317c6b054dfa03fe8a Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Fri, 15 Feb 2002 01:58:23 +0000 Subject: [PATCH] Fixed description for users enable register_globals git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70268 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/session.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/functions/session.xml b/functions/session.xml index 325a365311..2c1f5cc813 100644 --- a/functions/session.xml +++ b/functions/session.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -147,11 +147,21 @@ unset($_SESSION['count']); If you are using - $HTTP_SESSION_VARS/$_SESSION, + $HTTP_SESSION_VARS/$_SESSION + and disable register_globals, do not use session_register, session_is_registered and - session_unregister unless you know internal - of session module. + session_unregister. + + + If you enable register_globals, + session_unregister should be used since + session variables are registered as global variables when + session data is deserialized. Disabling register_globals + is recommended for both security and performance reason.