Skip to content

Commit de26519

Browse files
committed
Fix error - header already sent (2)
1 parent 43764e0 commit de26519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JwtSession.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function close()
7979
*/
8080
public function destroy($session_id)
8181
{
82-
if (headers_sent()) {
82+
if (!headers_sent()) {
8383
setcookie(self::COOKIE_PREFIX . $this->suffix, null);
8484
}
8585

0 commit comments

Comments
 (0)