A related request is to have a common function xoops_setcookie() that's used for setting all cookies, both by the core and by addon modules. That would make it possible to make changes such as adding a cookie prefix, or changing the other cookie attributes (domain, path, expiration time), with a single code change.