Fixes a bug where cookie expiration time is too far in the future.