Eve For Enterprise    Eve Support Community    Forums  Hop To Forum Categories  Resources  Hop To Forums  Development, & Software Talk    Setting UBB cookie using PHP

Moderators: Mark Badolato
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
WDN
Groupee Newbie
Posted
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.
 
Posts: 23 | Registered: April 12, 2001Reply With QuoteEdit or Delete MessageReport This Post
WDN
Groupee Newbie
Posted Hide Post
Is this even possible? Anyone?
 
Posts: 23 | Registered: April 12, 2001Reply With QuoteEdit or Delete MessageReport This Post
Groupee
Posted Hide Post
I would imagine it is possible, but I dont know PHP.
 
Posts: 3880 | Location: Seattle, WA | Registered: January 01, 2000Reply With QuoteEdit or Delete MessageReport This Post
Groupee CEO

Picture of Ted O'Neill
Posted Hide Post
Hi WDN-

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, 2000Reply With QuoteEdit or Delete MessageReport This Post
WDN
Groupee Newbie
Posted Hide Post
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.

PS - Sorry for the long message.

 
Posts: 23 | Registered: April 12, 2001Reply With QuoteEdit or Delete MessageReport This Post
Groupee CEO

Picture of Ted O'Neill
Posted Hide Post
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, 2000Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Eve For Enterprise    Eve Support Community    Forums  Hop To Forum Categories  Resources  Hop To Forums  Development, & Software Talk    Setting UBB cookie using PHP