Using CPG with SMF over subdomains Using CPG with SMF over subdomains
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Using CPG with SMF over subdomains

Started by Benqo, August 09, 2005, 09:46:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Benqo

Hi,

I planned to create my new structure of my website like this:

hxxp://blog.mydomain.net (s9y 0.8.2)
hxxp://forum.mydomain.net (SMF 1.0.5)
hxxp://img.mydomain.net (CPG gallery 1.3.3)

The s9y plugin to Coppermine is not really a big deal, you can specify the exact domain there. I worry more about SMF and Coppermine, using the same user database over the delivered-with bridge, but installed in different subdomains and physical directories.
The structure is:

customerdir/
> blog/
> forum/
> img/
> public_html/


I think the structure is self-describing. Is this possible? Originally, in the documentation it is written that the authentication could be a problem. But I'm pretty sure that someone already solved such a similar problem, it seems, that I'm just to stupid to find the right thread. :)

Regards, Benqo

Nibbler

Subdomains are fine, just make sure the cookies are set on .mydomain.net

You'll need to change the udb_redirect function in the bridge file, I have posted a few times on how to do that but it's fairly straightforward if you take a look at the function.

Benqo

Muchas gracias! Merci! Kiitos! Thank you! Dankeschön! Gracie mille! :)

Only one left: is it possible to set a explicit cookie domain in SMF and CPG, too?

Nibbler

You can't set cookie domain in coppermine, but you don't need anything to read coppermine's cookies. You need to enable subdomain independent cookies in SMF, and disable database driven sessions.