Set the statis session context when setting the session