• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 18863
  • Last Modified:

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

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?

Thanks.  

0
bigMlittleC
Asked:
bigMlittleC
  • 3
  • 2
2 Solutions
 
VanHackmanCommented:
I think that I Deserve the points, as far I was the only expert participating on the question, and my answer solves the problem.
0
 
bigMlittleCAuthor Commented:
OK.

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: http://www.phpclasses.org/browse/package/4826.html

That has answered many of the questions.
0
 
bigMlittleCAuthor Commented:
I am not sure on etiquette here - regarding points etc - perhaps you can advise SouthMod?
0
 
bigMlittleCAuthor Commented:
The answer was almost complete - the linked page was in Spanish and didn't have the explanation of session management.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now