Store debug flag in session instead of our own cookie.