finishes session/cookies