That *should* work - although I haven't tested.
Former versions of ubbthreads had setcookie calls all over, so it was a PITA to change.
one of the things Rick did in 6.4 was move it all into the ubbt_setcookie function - which to my knowledge is the only way cookies get set in threads.
Like I said, I havent' tested and am not 100% certain, but that was the reasoning behind centralizing the function. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />