string session_name
(string [name]);session_name() returns the name of the current session. If name is specified, the name of the current session is changed to its value.
Example 1. session_name() examples $username="foo"; if(isset($username)) { session_name($username); } echo "Your username is " . session_name(); |
Note: This function was added in PHP 4.0.