Only operate if we have a session.