title: PHPSESSID not being saved to cookie
body: <p>the PHPSESSID variable that holds the session id is not being saved into the client cookie. 
  This results in a new session id being generated every time I call the <code>session_start()</code> function.</p>
  
  <p>This is true when i'm using FireFox, Opera and Chrome. With safari, for some reason, this variable is being successfuly saved into the cookie and everything works fine.</p>
  
  <p><strong>EDIT:</strong> Here is my session settings via <code>phpinfo()</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/aOHXE.png" alt="session settings via phpinfo"></p>
  
  <p>My website has a subdomain, and I want to use the same session acorss all subdomains.</p>
  
  <p><strong>2nd EDIT:</strong>
  when I check <code>var_dump($_COOKIE);</code> on my main domain I get the session id under the name <code>PHPSESSID</code> but when I do that on the subdomain I get an empty <code>array()</code>.</p>