Fix session expiration issue