Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cookie path question  (Read 3548 times)

0 Members and 1 Guest are viewing this topic.

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
cookie path question
« on: October 15, 2004, 06:06:20 am »

I am trying to integrate my CPG and my PHPBB

The directories where each is installed is as follows

PHPBB   www.mysite.com/msgboard/nfphpbb
CPG      www.mysite.com/Group101Actors/nfpicturepro

Should the qookie path be set for both to be / . Or should it be // or ./ or ..// or what?

I have it 99.9% integrated. But that feels so far from 100.

I know, from reading all the posts on the subject, that the only problem I am having is getting CPG to read the friggin' PHPBB's cookie.

I click on the CPG Log In link, it takes me to the BB Log In screen. I type the username and password and it redirects me to CPG where I am not logged in. Yet, if I go back to the BB, I am logged in. Definitely a cookie thing, right?

http://www.group101clt.com/Group101Actors/nfpicturepro/index.php                  u=test p=test

2nd question:

Should changes be made to this part of the phpbb.in.php file?

  // Retrieve cookie stored login information
    if (!isset($HTTP_COOKIE_VARS[PHPBB_COOKIE_PREFIX . '_data'])) {
        $cookie_uid = 0;
        $cookie_pass = '*';

I know it says: "// Nothing to edit below this line." But...  I was wondering if that's for when you are doing something other to the files than trying to get it to bridge correctly.

I know these are probably dumb questions. Forgive me.
« Last Edit: October 15, 2004, 09:57:24 pm by GauGau »
Logged

Nibbler

  • Guest
Re: cookie path question
« Reply #1 on: October 15, 2004, 04:50:29 pm »

Issue solved ?
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: cookie path question
« Reply #2 on: October 15, 2004, 05:01:34 pm »

What do you mean? Nobody offered any suggestions or response, yet.
Logged

Nibbler

  • Guest
Re: cookie path question
« Reply #3 on: October 15, 2004, 05:06:16 pm »

I just went to your site and it works perfectly.
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: cookie path question
« Reply #4 on: October 15, 2004, 05:07:51 pm »

I will be darn. It works for the user accts. but not for the admin acct. Why is that?

Could this be an issue of the group definitions in the bridging file

Code: [Select]
// Group definitions
define('PHPBB_ADMIN_GROUP', 1);

and the group ID in the phpbb dd?

My phpbb_groups table has

Group ID    Group Type 2    Group Name

1                     2                    Admin

But maybe I'm looking in the wrong table or something.
« Last Edit: October 15, 2004, 05:41:34 pm by zebraplayer »
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: cookie path question
« Reply #5 on: October 15, 2004, 05:52:15 pm »

Solved it. My user ID was 0 in the phpbb db, which I gues was conflicting with stuff in the bridging file. I changed it to 1 and now it works.

Thanks, Nibbler for taking the time to look into it.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.