PHPBB 2.0.19 and Coppermine 1.4 integration problem PHPBB 2.0.19 and Coppermine 1.4 integration problem
 

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

PHPBB 2.0.19 and Coppermine 1.4 integration problem

Started by RANDY, July 20, 2006, 10:20:45 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

RANDY

Hi!

I have a similar problem to: http://forum.coppermine-gallery.net/index.php?topic=33686.0

Coppermine install: http://www.sydneyrcdrifters.com/media
Forum install: http://www.sydneyrcdrifters.com/forum
Coppermine version: cpg1.4.2
Forum version: PHPBB2.0.19
Test user account: admin/test

BridgeManager settings:
Forum URL:  http://www.sydneyrcdrifters.com/forum
Relative path to your BBS's config file:  ../forum/ 
Use post-based groups?:  0 

I have left the cookie name as phpbbmysql or whatever, but the cookie path is /forum/. As this other user advises, if this is changed, everyone in the forums will have to delete their cookies or something to be able to log in again. I really don't want to change this, but I beleive that this is the problem with coppermine integration for me.

When I login to coppermine, it takes me to the forum, where I am already logged in. No redirection, and I have setup the redirection php file in the forum directory.

So, is there any way to tell coppermine where the cookie path is? I've tried using "/forum/phpbbsql" as the cookie prefix, but that doesn't work.

Cheers!

Nibbler

Cookie path must be '/' and you must use the latest stable version of Coppermine. If you change the forum cookie name at the same time then people will have to re-login but they won't need to clear their cookies.

RANDY

Oh right! That might be the best solution; to change the cookie name if coppermine doesn't support non-default cookie paths!

I'll give this a try!

Nibbler

I resent the implication that this is some fault in Coppermine. This is how cookies work.

RANDY

Sorry, I didn't mean to implicate that there is a fault... just an option that is not present.

My cookies work flawlessly running off the path that I have told phpbb to use, so I asked if Coppermine had the same configurability:

QuoteSo, is there any way to tell coppermine where the cookie path is?

To which you didn't answer, but advised that Coppermine should integrate if I change my phpbb settings to suit it.
Perhaps in the future, you could answer with something like "Coppermine does not support custom cookie paths"?

So again, sorry... I didn't mean for my comment to sound like there was some bug or faulty coding within Coppermine and I appreciate your support!

Nibbler

Quote from: RANDY on July 20, 2006, 03:42:53 PM
Sorry, I didn't mean to implicate that there is a fault... just an option that is not present.

An option that is not possible. If you have your cookie path set to /forum then only scripts running inside /forum get to see the cookie. If you set it to /media then only coppermine can see the cookie and phpbb will break. If you set it to / then both phpbb and coppermine can see the cookie and both will work. You can read RFC 2109 to learn more about how cookies work, or you could just trust me. Either way's good. :)

RANDY

I get your drift! While the cookies work for phpbb, they can't be shared with other scripts if they are not in the root directory.

Thanks again! I'll let you know so you can set this to solved!

RANDY

Changed cookie name, and set path to "/" in phpbb.

Integration is working! Thankyou again for your excellent support!