Hi there!

We're on the same boat. I'm also using CakePHP and phpBB.
I haven't really touched sessions part but I'm sure I'll be needing to
verify
the identity of the phpBB user in my CakePHP apps. ^_^

As far as I know, phpBB doesn't store its sessions using php $_SESSION.
It uses cookies.
Normally they would be contained in:
$_COOKIE['phpbb2mysql_data'] and $_COOKIE['phpbb2mysql_sid'].

Try doing this inside you're Cake app (make sure you are logged in
phpBB)

print_r(unserialize($_COOKIE['phpbb2mysql_data']));

You should be seeing autologinid and user_id.

I'm planning to start from here. Maybe I'll try to read the cookie then
start a CakePHP session from the data that I'll get.

I'll post here for updates if I'd be successful or not. :P
Hope I gave you some idea :)

ax0rz wrote:
> Hey! I'm having major trouble integrating the sessions between Cake &
> phpBB2.
>
> 1) My phpBB2 installation is in /app/webroot/phpBB.
> 2) The DocumentRoot in httpd.conf is set to /app/webroot.
>
> I've tried accessing $_SESSION directly in /phpBB/login.php (ie- when
> the user logs in successfully, $_SESSION['user_id'] etcetc is set),
> but, the problem is I'm not able to access these $_SESSION variables
> from outside phpBB. :( :(
>
> If someone else has any idea how this can be achieved, please post! I'm
> sure it will be helpful to a LOT of people. Thanks in advance!
> 
> Cheers!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to