improve session class

adds SimpleSession and ExtendedSession classes