Hi, I am wondering if it would be possible to set cookie for UBB using PHP. The reason I am asking this is that I am developing a site where I am integrating UBB into the site, so that it becomes integral part of the site rather than a separate entity. So when some one logs on to the site I would like the UBB to recognize the cookies I am setting. The registration for the UBB is handled by manipulating the files under Members directory using my PHP codes. If anyone knows how to do this please let me know. Thanks.
Yes, you can do this. Cookies are not tied to a particular programming language. They are simply data stored on your PC's browser. Thus, you can set or read the cookies using either Perl or PHP or both.
Use the PHP setcookie function to set them. Any PHP book can show the basics for setting and reading cookies with PHP.
Ted O'Neill CEO, Infopop Corporation
Posts: 3558 | Location: Seattle, WA | Registered: February 24, 2000
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. What I am asking is something different. Like I mentioned 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 will have to write the cookie for UBB as well. I want to know how I can do this. Thanks.
Cookies can be set broadly across an entire domain or just within a certain directory on a domain. Assuming your UBB and your site have the same domain, just make sure the cookies that are created are ampped to work across the entire domain and you will not have any issues.
Ted O'Neill CEO, Infopop Corporation
Posts: 3558 | Location: Seattle, WA | Registered: February 24, 2000