change to be able to retreive entire session, this is to enable some
application specific data storage in the session