Jump to content
jsilmarovi

Persist login when change domain

Recommended Posts

Hello.

I have a content portal with three domains point to it. The access can happens trought xpto.com.br, xpto.com and xptow.com.br.

When I log in on admin panel throught xpto.com and changes to xptow.com.br for example, I need to authenticate on xptow.com.br to use the panel.

Is there a way to keep logged in on admin even I change the domain on url?

Share this post


Link to post
Share on other sites

You are in search for a Single Sign On (SSO) solution. You might want to check out this SAML SSO ProcessWire module. Or you might want to check out other PHP SSO of SAML solutions.

  • Like 3

Share this post


Link to post
Share on other sites

With PW this is only possible for subdomains.

$this->config->sessionCookieDomain = '.example.org';

This setting includes:

example.org
subdomain.example.org

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...