bug in session.php, old database config fix