trim up the session object so it can actually save