(PHP 4 >= 4.3.2, PHP 5)
session_regenerate_id -- Update the current session id with a newly generated onesession_regenerate_id() will replace the current session id with a new one, and keep the current session information.
如果成功则返回 TRUE,失败则返回 FALSE。
注: 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().