[Solved]: phpBB cookie path [Solved]: phpBB cookie path
 

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

[Solved]: phpBB cookie path

Started by vigps, June 22, 2004, 05:56:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vigps

I have my cookie path set to /phpBB2 in the phpBB configuration.

Is it possible to integrate Coppermine with my phpBB2 board with this cookie setting in place or must the phpBB cookie path be left blank?  I would prefer to keep my current setting for the cookie path, to keep life simple for my users.


Joachim Müller

why don't you just try (although I can't see why a cookie path should make life easier for a user, he hardly realizes)?

GauGau

vigps

Quote from: GauGau on June 22, 2004, 07:52:54 AM
why don't you just try (although I can't see why a cookie path should make life easier for a user, he hardly realizes)?

I gave it a try, but am having a problem.

I deleted the cookie path in phpBB2.

Set up everything as outlined in "Integrating the Script with your bulletin board.

I can log into phpBB as admin, and stay logged in, but cannot log in to coppermine as admin (or anyone else).

If I am logged into phpBB2 and go to coppermine, I am not logged in (in coppermine), so I click on Login and am immediately bounced back to the phpBB2, where I remain logged in.

If I am not logged in to phpBB2, and go to coppermine, click on login, enter admin and password, I am presented with the main gallery page but not logged in. Clicking on Login once again sends me to phpBB2, where I am logged in.

I have tried this many times, and have deleted my browsers cookies many times, the results are always the same.

help  :\'(

Joachim Müller

link and test user account?

GauGau

vigps

Quote from: GauGau on June 23, 2004, 05:52:11 AM
link and test user account?

vigps.com/phpBB2
vigps.com/coppermine

user: test
pass: test

Joachim Müller

post both your cookie paths and cookie names in coppermine and phpBB, and post your first 40 lines of your bridge file (replacing the password with ***)

GauGau

vigps

Quote from: GauGau on June 23, 2004, 06:03:06 AM
post both your cookie paths and cookie names in coppermine and phpBB, and post your first 40 lines of your bridge file (replacing the password with ***)

phpBB2
cookie domain: .vigps.com
cookie name: phpbb2mysql
cookie path: -blank-

coppermine
cookie name: cpg130
cookie path: -blank-

bridge file:

// database configuration
define('PHPBB_DB_NAME', 'vigps_db'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '***'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '***'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/phpBB2/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //
// Group definitions
define('PHPBB_ADMIN_GROUP', 1);
define('PHPBB_MEMBERS_GROUP', 2);
define('PHPBB_GUEST_GROUP', 3);
define('PHPBB_BANNED_GROUP', 4);
// Authenticate a user using cookies
function udb_authenticate()
{
   global $HTTP_COOKIE_VARS, $USER_DATA, $UDB_DB_LINK_ID, $UDB_DB_NAME_PREFIX, $CONFIG;


Joachim Müller

have you tried leaving the cookie domain blank?

GauGau

vigps

Quote from: GauGau on June 23, 2004, 06:36:23 AM
have you tried leaving the cookie domain blank?

Yes - just tried that again right now....the results are the same.   :\'(

Joachim Müller

OK, guess I have to give up on this, since I'm actually no phpBB expert. Could some other dev take over please? Thanks.
@vigps: sorry, bye...

GauGau

vigps

Quote from: GauGau on June 23, 2004, 06:47:35 AM
OK, guess I have to give up on this, since I'm actually no phpBB expert. Could some other dev take over please? Thanks.
@vigps: sorry, bye...

Thanks for trying!!  Your efforts are appreciated.

Nibbler

I just took a look, and your cookie path for the board's cookies is /phpBB2/. The only way you can get coppermine to see that cookie is to install coppermine into your phpbb directory, which is not a good idea. You will need to set that to '/' for integration to work.

vigps

Quote from: Nibbler on June 23, 2004, 07:47:43 PM
I just took a look, and your cookie path for the board's cookies is /phpBB2/. The only way you can get coppermine to see that cookie is to install coppermine into your phpbb directory, which is not a good idea. You will need to set that to '/' for integration to work.

That's strange....I just checked the phpBB config, and the Cookie Path is set to -blank-

Is there a setting somewhere else that I have neglected to change?


vigps

Aha!!   It's working!!!   ;D

I set the cookie path in phpBB to a / instead of leaving it blank, and now it works perfectly!!

Thanks everyone for your assistance!!


yeroen

Tnx,

I had the same problem. Allready had the cooky path on "/", but cooky domain had indeed to be set to *blank* (tnx gaugau).

greetz,

yeroen