diff --git a/Session/Storage/Handler/RedisSessionHandler.php b/Session/Storage/Handler/RedisSessionHandler.php index 94ba4226..c043704c 100644 --- a/Session/Storage/Handler/RedisSessionHandler.php +++ b/Session/Storage/Handler/RedisSessionHandler.php @@ -276,4 +276,12 @@ public function shutdown() { $this->close(); } + + /** + * Destructor. + */ + public function __destruct() + { + $this->shutdown(); + } }