Take a look at this...
http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:57
27

If you do this approach, you will need to CFCOOKIE (set cookies) to the
user, based on the CFHTTP.ResponseHeader["Cookie"] which phpbb comes
back, since that's how phpbb maintains sessions...

If you do that, you'll probably need to send the user to a page which JS
redirects to the phpbb app, but at least this will allow you to log into
phpbb on the backend.

At least, this is what I think would work in your case.  Only other
thing, is that you end up with 2 sessions. A CF session, and a PHP
session...  In order to keep the 2 in sync, you'd need to do something
creative, like use a CFM file in CF to pipe out a transparent GIF when
viewing PHP pages, and a PHP page which does the same, for inclusion on
CFM pages. Then you'll end up maintaining the 2 sessions
simultaneously... Ugly, but it should work 99% of the time. (just make
sure both app servers have the same timeout for sessions)....


Dov


-----Original Message-----
From: Luke Freeman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 5:38 AM
To: CF-Talk
Subject: Coldfusion & phpBB

Hi to anyone that can help. I have a website with a coldfusion login
system which works fine. However, i have recently intergraded a phpBB
forum to the site (clients request not my idea). I have managed to link
the username / password tables to my exisiting coldfusion site, so when
someone registers via the coldfusion script it automatically creates
them a phpBB login too.
 
The problem that I am facing is that when a user logs into the
coldfusion site they have to also login to phpBB seperatly. I have used
CFHTTP to try and force a login via phpBB but to no joy. Below is the
script.. 
 
<!-- log into message board -->
<CFHTTP method="post" url="/board/login.php" resolveurl="yes">
    <CFHTTPPARAM type="formfield" name="username" value="test">
    <CFHTTPPARAM type="formfield" name="password" value="test">
    <CFHTTPPARAM type="formfield" name="redirect" value="">
    <CFHTTPPARAM type="formfield" name="autologin" value="1"> 
    <CFHTTPPARAM type="formfield" name="login" value=""> </CFHTTP>

Now the above code does sucesfully authenticate the user with phpBB and
log them in, but it does not save the session cookie so when the user
navigates away they are no longer logged in to phpBB. I have done some
digging about and found that the session cookie for phpBB is called
php2mysql_sid.

Does anyone know how to get this working? Probably a really simple
solution......... :o/

cheers! 

 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240882
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to