title: PHP : my cookies are not deleted after closing the browser
body: <p>I have some difficulties with my php code. I need to modify the part of code of my colleague and I don't understand what's happen.</p>
  
  <p>In the signin page, he checked for the login and password, and if it's ok, a $_SESSION start and the user can access to the application.</p>
  
  <p>The problem is, if the user doesn't click on the deconnexion link and quits the page (even if he closes the browser or shuts down the pc), he's always connected. I checked and there is a cookie.</p>
  
  <p>My first question is why this cookie exists because there are no setCookie() in the code. </p>
  
  <p>This is the part about session in my php.ini :</p>
  
  <pre><code>session.save_handler = files
  session.save_path = "N;/path"
  session.save_path = "/var/lib/php/session"
  session.use_cookies = 1
  session.use_only_cookies = 1
  session.name = PHPSESSID
  session.auto_start = 0
  session.cookie_lifetime = 0
  session.cookie_path = /
  session.cookie_domain =
  session.cookie_httponly = 
  session.serialize_handler = php
  session.gc_probability = 1
  session.gc_divisor = 1000
  session.gc_maxlifetime = 1440
  session.bug_compat_42 = Off
  session.bug_compat_warn = Off
  session.referer_check =
  session.entropy_length = 0
  session.entropy_file =
  session.cache_limiter = nocache
  session.cache_expire = 180
  session.use_trans_sid = 0
  session.hash_function = 0
  session.hash_bits_per_character = 5
  url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
  </code></pre>
  
  <p>So I need to know how to delete the cookie when the user closes the browser. (I can't define a value for expiration because the application uses some processing which can take a lots of minutes before having the results).</p>
  
  <p>Can you help me ?</p>
  
  <p>Thanks</p>
  
  <p>Angelique</p>