Removes deprecated class name parameter.
Simplifies the check for session expiration.