Skip to content

Commit

Permalink
Make sure to close things no matter what when using the default handler
Browse files Browse the repository at this point in the history
ericmann committed Nov 20, 2016
1 parent 54b2b25 commit e1f04e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions php/Handlers/DefaultHandler.php
Original file line number Diff line number Diff line change
@@ -21,6 +21,11 @@ public function __construct()
$this->handler = new \SessionHandler();
}

public function __destruct()
{
@$this->handler->close();
}

/**
* Delete a session from storage by ID.
*

0 comments on commit e1f04e9

Please sign in to comment.