diff --git a/reference/session/reference.xml b/reference/session/reference.xml index 5b4273e4bd..f4d8e9016e 100644 --- a/reference/session/reference.xml +++ b/reference/session/reference.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -134,10 +134,11 @@ Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is recommended for improved security and code readablity. With - $_SESSION, there is no need to use - session_register()/session_unregister()/session_is_registered() - functions. Session variables are accessible like any other - variables. + $_SESSION, there is no need to use the + session_register(), + session_unregister(), + session_is_registered() functions. Session variables + are accessible like any other variables. Registering a variable with $_SESSION. @@ -179,7 +180,7 @@ unset($_SESSION['count']); <![CDATA[ <?php session_start(); -// With PHP 4.3 and later, you can also use simply use the prior example. +// With PHP 4.3 and later, you can also simply use the prior example. session_unregister('count'); ?> ]]> @@ -189,12 +190,12 @@ session_unregister('count'); <para> If <link linkend="ini.register-globals"><literal>register_globals</literal></link> - is enabled, then all global variables can be registered as session - variables and the session variables will be restored to corresponding - global variables. Since PHP must know which global variables are - registered as session variables, users need to register variables with - session_register() function. You can avoid this by simply setting entries - in <varname>$_SESSION</varname>. + is enabled, then each global variable can be registered as session + variable. Upon a restart of a session, these variables will be restored + to corresponding global variables. Since PHP must know which global + variables are registered as session variables, users need to register + variables with session_register() function. You can avoid this by simply + setting entries in <varname>$_SESSION</varname>. <caution> <para> If you are using