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 6929139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:16:46+00:00 2026-05-27T11:16:46+00:00

I am needing help with single sign on. I have siteA.com that requires login

  • 0

I am needing help with single sign on. I have siteA.com that requires login credentials, once you are in SiteA.com you can do many things and one of them is access another application siteB.com. If you click on the option to go to this other application, the other application also has a login screen whose credentials are the same as siteA.com, so siteA.com and siteB.com have login screens of their own with the same credentials.

I am trying to make it a single sign on is there anyway I can remote login or pass credentials from siteA.com to siteB.com?

I am interested in:
Solved exactly same problem (actually also for 4 domains). The only solution I’ve came up with was, to include 3 hidden iframes on the ‘Successful login page’ and those iframes just load http://www.domain1.com/register_session.php, http://www.domain2.com/register_session.php, etc….

As a parameter for register_session.php I use ‘sid’ which contains session ID:

session_id($_GET['sid']);
session_start();

This is actually for keeping session alive on all those domains but the same would be for your case with cookies.

I think this could work but the problem is given the credentials, how can I make the script login to siteB.com?

I have done something which KIND of works…I copied the html of siteB.com and added that to hidden in siteA.com and at siteA.com made it do a double POST, one to siteA.com’s login and another to siteB.com’s login. This works only if the user has logged in to siteB.com lately, I think that logging in to siteB.com it sets a cookie to control access thats why doing the double POST allows you to fool the login system and as long as the correct credentials are provided it does a successful grab of login cookie, allowing you to login.

  • 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-05-27T11:16:46+00:00Added an answer on May 27, 2026 at 11:16 am

    Store the user’s information in a cookie( such as the user’s id in the database ) then on the login page, look for that cookie. if it exists and is a valid user, go ahead and log them in.

    When creating a cookie, you should be able to set it’s domain to the domain of siteB.com so that siteB.com can see it. Simply create one cookie for each domain that needs to be able to read that cookie, and set acceptable expires settings on each cookie so that they either expire on session end or after x days.

    Depending on how much security you need, you may need to put some kind of protection to prevent someone from simply creating their own cookie to get in freely (such as encryption)

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

Sidebar

Related Questions

Heh, that's something that many plugin authors do without needing help, isn't it? :)
needing some help. I have two divs that I need to fill with images.
I am needing some help with SQL syntax. Say I have a members table,
I am needing help masking a url. I have 2 domains but I do
I'm needing some help with mod rewriting. I have been looking online for the
I am needing help with a credit card validation script. I have figured out
I'am not very familiar with javascript, that's why I'm needing your help. I've integrated
Needing help for some homework. I hope someone can help me out as I
needing some help to just break down the problem. I have new users who
I have the below HTML and JQuery code and i am needing some help

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.