What I am trying to do is to set cookies using my PHP codes so that the UBB will recognize them. I do know how to set cookies using PHP. I am totally integrating UBB into the site. The site consists of its own member list (MySQL) and logging in interface. So I wanted the registration to be one stop deal. I accomplished this by manipulating files under Members folder, where 0000xx.cgi, memberfiles.cgi, emaillist.cgi... exist. However, my problem is when a member logs in to the site s/he has to log in one more time with UBB to post and reply. I want to eliminate this. I want a user to be in logged on state with UBB when s/he logs in to the site. So I guess that means I will have to write the cookie for UBB as well. I want to know how I can do this. Thanks.

PS - Sorry for the long post.