create an accessor for Session