REMEMBER, that if you have a multi-subdomain site, you must put the following to enable a session id on the whole website:
<?php
session_set_cookie_params(0, '/', '.example.com');
session_start();
?>
Otherwise, you'll have 2 diffrent sessions on e.g. news.example.com and download.example.com