Fixed session expiration issue