session_id

(PHP 4 >= 4.0b1)

session_id -- Get and/or set the current session id

Description

string session_id ([string id])

session_id() returns the session id for the current session. If id is specified, it will replace the current session id.

The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs.