check if key is in session.