Using cookie sessions in debug mode