why amember not single logon to multiple subdomain?

Discussion in 'Troubleshooting' started by note2you, Mar 22, 2010.

  1. note2you

    note2you New Member

    Joined:
    Feb 14, 2010
    Messages:
    17
    Hi, all

    i have 4 subdomain site 2joomla and 2vbulletin forums and each site separate sub domain like joomla1.mysite.com joomla2.mysite.com vb1.mysite.com vb2.mysite.com and amember is mysite.com/amember/

    i found problem, it's all sub domain can login success but must login each subdomain , it's not single login or one login to all domain, how to fix problem?

    please tell me if you knows or get this job lancer.:cool:

    regard,
    note
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Possible plugins will require modifications in the part that set cookies. By default cookies that set for one domain will not work for other (even if this is sudomain)
    I saw ticket from you in helpdesk, will check it now and update.
  3. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    Can you let me know which parts need to be edited as well - got an exact same situation with a client happening right now...

    I'll send you an email in helpdesk too, just to keep track of it.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Ok.
    1. need to add this code to all subdomains and main domain in .htaccess :
    php_value "session.cookie_domain" ".domain.com"
    this will fix single login issue between amember and vBuleltin for subdomains, because plugin installed into vBulletin use aMember session to login user.
    2. Need to change set_cookie method in paysys.inc.php and add ".domain.com" parameter to setcookie function. The same for all plugins that use setcookie function.

    After this single login between scripts installed on subdomains should work.
  5. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    Nope, that didn't help in my case... I found another way of doing that - by pushing all the redirects to joomla pages through /amember/login.php?amember_redirect_url ... ;)

Share This Page