Intercept setdefault and pop calls in cookie session implementation (Fixes hhucn/adhocracy.hhu_theme#304)