Fixed bug in Session.php.