diff --git a/reference/session/reference.xml b/reference/session/reference.xml index e76e6b8e77..4de9e9fcae 100644 --- a/reference/session/reference.xml +++ b/reference/session/reference.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -22,7 +22,7 @@ The session support allows you to register arbitrary numbers of variables to be preserved across requests. When a visitor accesses your site, PHP will check automatically (if session.auto_start + linkend="ini.session.auto-start">session.auto_start is set to 1) or on your request (explicitly through session_start or implicitly through session_register) whether a specific session @@ -32,8 +32,8 @@ If you do turn on - session.auto_start then you cannot put - objects into your sessions since the class definition has to be + session.auto_start then you cannot put objects into + your sessions since the class definition has to be loaded before starting the session in order to recreate the objects in your session. @@ -151,7 +151,7 @@ If register_globals + linkend="ini.register-globals">register_globals is disabled, only members of the global associative array $_SESSION can be registered as session variables. The restored session variables will only be available @@ -188,7 +188,7 @@ if (!isset($_SESSION['count'])) { Unregistering a variable with <varname>$_SESSION</varname> and <link - linkend="ini.register-globals"><literal>register_globals</literal></link> disabled. + linkend="ini.register-globals">register_globals</link> disabled. Unregistering a variable with <link - linkend="ini.register-globals"><literal>register_globals</literal></link> + linkend="ini.register-globals">register_globals</link> enabled, after registering it using <varname>$_SESSION</varname>. @@ -220,7 +220,7 @@ session_unregister('count'); If register_globals + linkend="ini.register-globals">register_globals 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 @@ -231,7 +231,7 @@ session_unregister('count'); If you are using $_SESSION and disable register_globals, + linkend="ini.register-globals">register_globals, do not use session_register, session_is_registered and session_unregister, if your scripts shall work @@ -239,18 +239,18 @@ session_unregister('count'); If you enable register_globals, + linkend="ini.register-globals">register_globals, session_unregister should be used since session variables are registered as global variables when session data is deserialized. Disabling register_globals + linkend="ini.register-globals">register_globals is recommended for both security and performance reasons. Registering a variable with <link - linkend="ini.register-globals"><literal>register_globals</literal></link> + linkend="ini.register-globals">register_globals</link> enabled @@ -270,7 +270,7 @@ else { If register_globals + linkend="ini.register-globals">register_globals is enabled, then the global variables and the $_SESSION entries will automatically reference the same values which were registered in the prior session instance. @@ -312,7 +312,7 @@ else { PHP is capable of transforming links transparently. Unless you are using PHP 4.2 or later, you need to enable it manually when building PHP. Under UNIX, pass - --enable-trans-sid to configure. If this build + --enable-trans-sid to configure. If this build option and the run-time option session.use_trans_sid are enabled, relative URIs will be changed to contain the session id automatically. @@ -362,7 +362,7 @@ To continue, click here Printing the SID, like shown above, is not necessary if - --enable-trans-sid was used to compile PHP. + --enable-trans-sid was used to compile PHP.