Fixed bug #329. Turned out to be an off-by-one error when setting a new user's cookie.