title: how to reset PHPSESSID cookie for different applications hosted on the same server
body: <p>I have two applications Aand B hosted on the same server. In fact, B is a sub-application to A, housed within a subdir of A.</p>
  
  <p>While the master (A) application uses default php session implementation, B implements session in database. An FYI.</p>
  
  <p>When I access application B in a new browser or before having accessed A, it's cookies are set just fine.</p>
  
  <p>However when I first access A, a PHPSESSID cookie is set. Now when I access B, cookies for B doesn't get set.</p>
  
  <p>I am clueless as to why the PHPSESSID cookie set by A doesn't let B set any of it's cookies. The reverse is not true.</p>