#867: Fix cookie expiring when local time is inaccurate and 'Log me automatically' not checked. Thanks Visman.