Fixed the way the session expiration date is compared to the current date