Update core/lib/session.php