title: how to set domain in setcookies()
body: <p>I have tried setting cookies but the problem is in setting domain. When i tried to set domain in <code>setcookies()</code> it doesn't set any value. Without domain setting it will automatically set my domain (for ex. localhost).</p>
  
  <p>If I am using any <code>.com</code> it will set it by default but I cannot set domain in cookies.</p>
  
  <p>Can any one please help me setting domain in php.</p>
  
  <pre><code>  setcookie('session_id',$sessionID[1],strtotime($expireTime[1]),'/',$domain);
  </code></pre>
  
  <p>When I set it without domain it sets the cookies to my localhost or on which domain I am.</p>
  
  <p>Can any one help me.</p>