Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8087281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:43:39+00:00 2026-06-05T18:43:39+00:00

The issue Let’s say that I have example.com, example.org and example.net. All of these

  • 0

The issue

Let’s say that I have example.com, example.org and example.net.

All of these sites have a login which authenticates against the same base of user credentials.

I’m looking for at efficient way to only log in one place but still having the ability to be transparently logged in at the sites sites.

My current solution
…is having an iframe loading a resource on one of the sites (which I call main site) and if the user is logged in at the main site, refresh the page using a token and automagically log in the user through some JavaScript.

But this is really ineffecient and insecure for several reasons:

  • User needs to log in at the main site
  • User needs to refresh his page, using some clientside code (I’m aware that it might not be possible to avoid this).
  • Using iframes is generally frowned upon and some even have browser plugins blocking these.

What I’m not looking for
I’m not interested in using some third party provider like Facebook, Google or an OpenID provider as this would require my users to register with third party websites to use my services.

Summing up to the specific question
Just like Google and even StackOverflow, the process between the sites authentication seems transparent I need something similar. What is the better option to my current solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:43:41+00:00Added an answer on June 5, 2026 at 6:43 pm

    I cannot share code … but the solution I implemented involved a middle-man to handle the authentication for all my sites… which we called an SSO Broker….

    Basically, all login requests go via the SSO Broker, it will determine if you have logged in already in sitea when trying to access siteb.

    … The closet I can point you to for how we implemented it is:
    http://www.jasny.net/articles/simple-single-sign-on-for-php/

    The other sso solutions all have their place too, but some are more complex than required.

    The other simple approach is, simply passing some (secure-ish) token between each other.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following issue: Let's say that I have a function that process
I have a memory issue with mongoengine (in python). Let's say I have a
Let's say I have a branch named feature/1 . And also issue #1. I
I ran into this issue quite a few times. Let's say I have a
Firstly, let me say that I've been on this issue for pretty much 2
I am running into an unusual issue with assembly loading. Let's say we have
I've one issue about php variable. Let's example: This is my while loop which
Let's say I have the following HTML: <ul> <li id=1>First issue.</li> <li id=2 class=error>Second
Let's say I have a counter function which updates a counter using raw SQL:
Before I explain the core issue, let me say that I'm actually quite interested

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.