validate($token) ? 'true' : 'false') . PHP_EOL); } finally { session_write_close(); unlink($file); rmdir($directory); }