Ran into an issue with strtotime() and time() this morning as the time changed back 1 hour.
date_default_timezone_set('America/New_York');
$expire = strtotime('+15 minutes');
if ($expire < time()) {
// session expired
}
Between the second 1-2am period, strtotime was producing times that were less than time(), so sessions were expired on creation. Why was that?