Fixed $wgCookieExpiration functionality when set to 0.