Session_http://www.aliyun.com/zixun/aggregation/11696.html ">name
(PHP4)
Session_name---Obtain and/or set the current session name
Syntax: String Session_name ([string name])
Description:
Session_name () returns the name of the current session, and if there is a specified parameter name, the name of the current sessions becomes its value.
The session name is associated with a cookie and the session ID in the URL, and it should contain characters that consist only of letters and numbers, and the name of the sessions resets to the preset values stored in the Session.name at the start of each request. You must call Session_name () in each request and call Session_name () before calling Session_Start () or Session_register ().
Example:
<?php
# Set the session name to WebSiteID
$previous _name = Session_name ("WebSiteID");
echo "The previous session name is $previous _name<p>";
?>
Note: This is the new function in PHP4.0