Skip to content

Commit

Permalink
Session: cleaning is done in __destruct
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 3, 2021
1 parent 84a99b4 commit 78bee95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,12 @@ private function initialize(): void
}
}
}
}


register_shutdown_function([$this, 'clean']);
public function __destruct()
{
$this->clean();
}


Expand Down

0 comments on commit 78bee95

Please sign in to comment.