As per http://www.simplemachines.org/community/index.php?topic=513746.0 when the id is bigger than 1000000 it becomes impossible to do a "direct" registration because of the regexp that validates the cookie.
What do you think if (while fixing the regexp) we cast $id in setLoginCookie to int and we simplify that regexp just a little bit?
LOL, thats pretty funny .. yes I would think so ... just cast it to int and you should be able to drop that | }|s:[1-8]:"\d{1,8}" part correct?
Yep, exactly.