indeyets / appserver-in-php

Generic HTTP applications approach for PHP5.3+ (inspired by Rack and WSGI)
BSD 3-Clause "New" or "Revised" License
291 stars 23 forks source link

fixed detection of session cookies #24

Closed xrstf closed 12 years ago

xrstf commented 12 years ago

In line 191, the class checks if the lifetime is 0 by using ===. On my machine (PHP 5.3.9) , ini_get() actually returns a string and therefore the check fails. A cookie that expires immediately is created.

The proposed change makes the statement work and omits the expire declaration from the generated cookie header.