Topic: Using 1 punbb install to "service" several sites.

I have 4 sites all ran off of the same host, so during integration I just used abs path to include the punbb files and everything works. However, I'm having cookie problems now. The one site that "hosts" the forum is the only one that shows me logged in. If thats hard to understand maybe this will help.

<My Host>
  <Site 1> <- Works like a charm
    <forum folder>
  <Site 2> <- Shows me as a guest
  <Site 3> <- Shows me as a guest
  <Site 4> <- Wanna guest? get it ? big_smile

Think of the <sitex> as its own folder on my server and its own Top level domain (www.site2.com, www.site3.com, www.site1.com/forum/)

Is there a way I can get punBB's cookies to be acknowledged and used on the other 3 sites?


Thanks a bunch for what I hope are timely responses.

Re: Using 1 punbb install to "service" several sites.

Try setting your cookie path and domain to point to your root. The other solution is to have your forum in the root and the other sites in subdirs or make sure your cookie gets set in the root dir and not the forum dir.

3 (edited by bfdhud 2006-09-02 16:26)

Re: Using 1 punbb install to "service" several sites.

That didn't work,

Is there a way to make the cookie readable over several domains?

Re: Using 1 punbb install to "service" several sites.

I don't think so; That could be a security issue.

5 (edited by Smartys 2006-09-02 17:13)

Re: Using 1 punbb install to "service" several sites.

No, cookies can be read by one domain and one domain only.
Of course, you could set up all the sites as subdomains: then you could have them all read from the same cookie tongue

6 (edited by bfdhud 2006-09-03 06:08)

Re: Using 1 punbb install to "service" several sites.

Is it possible to get punBB to set a different cookie for each "site" at the same time?

Re: Using 1 punbb install to "service" several sites.

No, browsers don't let you set a cookie for another domain, since that would be a security issue as well.

Re: Using 1 punbb install to "service" several sites.

just install 3 forum on one site.
and link the forums to it... set all the forum to there own table but mod the user table to pull from the main one.

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Using 1 punbb install to "service" several sites.

quaker wrote:

just install 3 forum on one site.
and link the forums to it... set all the forum to there own table but mod the user table to pull from the main one.

Can you maybe post how to do this, I'm not too familiar with PunBB, I would feel better if someone in the "know" were to help with this.

Re: Using 1 punbb install to "service" several sites.

http://punbb.org/forums/viewtopic.php?id=12909
As we've said though, if you want the forums linked properly you can use different top level TLDs