allow the session object to be set with string or symbol keys