Single Sign-on to PHPBB3

Discussion in 'Integration' started by campitelli, May 27, 2009.

  1. campitelli

    campitelli New Member

    Joined:
    Mar 17, 2009
    Messages:
    16
    I have set up amember with the PHPBB3 plugin but when I log in to amember as a user I get in to the member area as expected but when I go to the forums I still have to login again.

    Good news is the amember username and password work but how do I set it up so the user is automatically signed in to the forum? I do not want them to have to sign in twice.

    Any suggestions?
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Sounds like something is off in your integration. Check the cookie settings in phpbb and the amember plugin.

    David
  3. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi Campitelli,

    Yep, you should get single-sign-on with phpBB3 plugin properly integrated.

    Lee
  4. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Oh yes, I forgot to add... if you need help with this, email me codeispoetry [at] amemberincremental.com

    Lee
  5. jes_bad

    jes_bad New Member

    Joined:
    Apr 4, 2009
    Messages:
    32
    I am also having this issue. Cookies seem to be OK. See screenshots.

    :confused:
  6. tfrangio

    tfrangio New Member

    Joined:
    Aug 23, 2008
    Messages:
    11
    I have the same problem. How did you solve this problem? I have checked cookies and they seem to be set to the same value?

    This is another particular thing that has happened. That I want to point out as it may be relevant. I have been playing with the settings in the overallheader.html file within phpBB. This code works(meaning it will go to my wordpress blog and pass the info on to aMember as well so when the blog comes up I am logged in):

    Code:
    <!-- IF S_USER_LOGGED_IN  -->
    <a href="http://www.baystateacademy.org/students/login.php?amember_redirect_url=/realestatetraining/blog/?redirect_to=/realestatetraining/blog/" title="Dashboard">full3-Dashboard-in</a>
    <!-- ELSE -->
    <a href="/realestatetraining/">Dashboard-out</a>
    <!-- ENDIF --> 
    The code bellow does not work but they should be equivalent if I am reading this right:

    Code:
    <!-- IF S_USER_LOGGED_IN  -->
    <a href="/students/login.php?amember_redirect_url=/realestatetraining/blog/" title="Dashboard">full3-Dashboard-in</a>
    <!-- ELSE -->
    <a href="/realestatetraining/blog/">Dashboard-out</a>
    <!-- ENDIF --> 
    I would like a single sign on so users of my blog do not have to log in again when they are sent to the forum. As I understand that should be working with the phpBB plugin and the instructions on your site. Please correct me if I am misunderstanding anything and please point me in the right direction to investigate.

    Thanks,
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Problem with the code can be because of single login issue. If single login is not working, user will not be logged in aMember so wordpress cookies will not be set. Please contact us in helpdesk I will check plugin settings.
  8. mkoenig

    mkoenig New Member

    Joined:
    Mar 13, 2012
    Messages:
    2
    I'm running into the same issue. I've checked the cookie settings in both phpBB and aMemeber. Is it likely that this problem is being created because aMember is in one domain (e.g. www.mydomain.com) and the forum is in a subdomain (forum.mydomain.com)?

    I've verified that the aMemberphpBB cookie name, phpBB cookie domain, and phpBB cookie path match the forum's server settings exactly.

    One thing I've noticed that may be relevant is that when I log into aMember, I see Wordpress cookies being created (I'm protecting Wordpress content as well as phpBB content with aMember), but I don't see any phpBB cookies being created. I only see phpBB cookies created when I go directly to the forum.
  9. mkoenig

    mkoenig New Member

    Joined:
    Mar 13, 2012
    Messages:
    2
    After a lengthy session with FireCookie, I figured it out what was going on. The cookies were not being set/read from the same domain. Apparently my configuration was incorrect because I didn't correctly account for the subdomain. I changed the phpBB cookie domain settings for both aMember and phpBB3 from "forum.mydomain.com" to "mydomain.com" and now it seems to be working correctly.

    I've been able to modify phpBB script to send registered users who are logging in to the aMember login page and new registrants to the aMember signup page.

    Mark
    fordsierraclub likes this.

Share This Page