This is an old revision of the document!
session_start()
Start a new session and clear any existing session information. This generates a random session ID and passes it as a cookie back to the browser, so session_start needs to be called before any other data is sent out/
You can then set session variables through the global $_SESSION array.
For example:
$_SESSION['name']=“tom”;