diff --git a/reference/session/functions/session-register.xml b/reference/session/functions/session-register.xml index 5ba87c87e5..df30a3d7c8 100644 --- a/reference/session/functions/session-register.xml +++ b/reference/session/functions/session-register.xml @@ -1,5 +1,5 @@ - + @@ -24,28 +24,33 @@ - If you want your script to work regardless of register_globals, you need - to use the $_SESSION array. All $_SESSION entries are automatically - registered. If your script uses session_register(), it will not work in - environments where register_globals is disabled. + If you want your script to work regardless of register_globals, + you need to use the $_SESSION array. All + $_SESSION entries are automatically + registered. If your script uses + session_register, it will not work in + environments where register_globals + is disabled. - This registers a global variable. If you want to - register a session variable from within a function, you need to make sure to - make it global using the - global - keyword or the $GLOBALS[] array, or use the special session - arrays as noted below. + This registers a global variable. If you + want to register a session variable from within a function, you + need to make sure to make it global using the global + keyword or the $GLOBALS[] array, or use the + special session arrays as noted below. - If you are using - $_SESSION (or $HTTP_SESSION_VARS), - do not use session_register, - session_is_registered and + If you are using $_SESSION + (or $HTTP_SESSION_VARS), do not use + session_register, + session_is_registered, and session_unregister. @@ -56,7 +61,7 @@ If session_start was not called before this function is called, an implicit call to session_start with no - parameters will be made. $_SESSION does not mimick + parameters will be made. $_SESSION does not mimic this behavior and requires session_start before use.