check session.