create and close sessions pages functional