diff --git a/reference/session/functions/session-regenerate-id.xml b/reference/session/functions/session-regenerate-id.xml new file mode 100644 index 0000000000..836fee7f15 --- /dev/null +++ b/reference/session/functions/session-regenerate-id.xml @@ -0,0 +1,78 @@ + + + + + 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 + + +]]> + + + + + + 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. + + + + +