Fixed cached pages not expiring

also added logging to the session class