From 460ada0e3f717e4deb502e8e0d003a9c64a942c8 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 5 Jun 2005 17:19:19 +0000 Subject: [PATCH] convert to new style and document the new 'delete_old_session' parameter git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187677 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/session-regenerate-id.xml | 139 ++++++++++++------ 1 file changed, 97 insertions(+), 42 deletions(-) diff --git a/reference/session/functions/session-regenerate-id.xml b/reference/session/functions/session-regenerate-id.xml index 4bb92cdf2d..a3c91708ed 100644 --- a/reference/session/functions/session-regenerate-id.xml +++ b/reference/session/functions/session-regenerate-id.xml @@ -1,29 +1,85 @@ - - - - session_regenerate_id - - Update the current session id with a newly generated one - - - - Description - - boolsession_regenerate_id - - - - session_regenerate_id will replace the current - session id with a new one, and keep the current session information. - - - &return.success; - - - - A <function>session_regenerate_id</function> example - + + + + session_regenerate_id + + Update the current session id with a newly generated one + + + + &reftitle.description; + + boolsession_regenerate_id + booldelete_old_session + + + session_regenerate_id will replace the current + session id with a new one, and keep the current session information. + + + + + &reftitle.parameters; + + + + delete_old_session + + + Whether to delete the old session or not. Defaults to &false;. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 4.3.3 + + Since then, if session cookies are enabled, use of + session_regenerate_id will also submit a new + session cookie with the new session id. + + + + 5.1.0 + + Added the delete_old_session parameter. + + + + + + + + + + &reftitle.examples; + + + A <function>session_regenerate_id</function> example + "; print_r($_SESSION); ?> ]]> - - - - - - As of PHP 4.3.3, if session cookies are enabled, use of - session_regenerate_id will also submit a new - session cookie with the new session id. - - - - See also session_id, - session_start, and - session_name. - - - + + + + + + + &reftitle.seealso; + + + session_id + session_start + session_name + + + +