Best method to integrate PHPBB 3 sessions into an existing website login

Posted on 2009-12-23
Last Modified: 2013-12-12
We have an existing website, that has an existing login system.  We need to add a forum to the website.  It's a PHP based app and we're going to use PHPBB3.  (Unless there is a better solution that would support an open ID framework?)  

So we'd like to have a single logon for both systems.  Here is what we propose doing:

1) create a script to import the user table from the existing site into the PHPBB table.
2) not bother with converting the passwords, as ours are MD5 and PHPBB uses a proprietary hashed encryption (I think).
3) Get the new PHPBB user ID number and insert that back into the existing user table
3) We just need PHPBB to think that person is logged in and to provide their PHPBB userID.
4) So when they log-in it would create the session variables for PHPBB aswell as for the existing site.
5) Any new members would have their data inserted into the PHPBB table and the existing table.  Their PHPBB userID would also be inserted back into the user table.

Is it possible to do this? any suggestions on what to approach, particularly with how you handle the session and what session variables need setting?


Question by:bigMlittleC
    LVL 11

    Accepted Solution

    LVL 11

    Expert Comment

    I think that I Deserve the points, as far I was the only expert participating on the question, and my answer solves the problem.

    Assisted Solution


    Thanks for your response.  The pages you linked to did have some useful information on regarding creating new users, however there was no explanation of the session handling across the two sites.

    I did find this very useful:

    That has answered many of the questions.

    Author Comment

    I am not sure on etiquette here - regarding points etc - perhaps you can advise SouthMod?

    Author Closing Comment

    The answer was almost complete - the linked page was in Spanish and didn't have the explanation of session management.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now