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

  • Home
  • SEARCH
  • 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 8673351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:26:15+00:00 2026-06-12T19:26:15+00:00

On our websites we want to make it possible to share sessions accros multiple

  • 0

On our websites we want to make it possible to share sessions accros multiple domains. All these websites are on the same server but some of them have a different IP address.

The possible solution I found was to set the session ID myself:

<?php
session_id($someUniqueHash);
?>

And this works, if I make the hash like md5(‘test’). On a other domain on te same server we have the session again.

The problem is generating the ID. I see some solutions on the internet with microtime etc, but when I use that approach I can’t predict the session ID on the other domain / PHP page.

Does anyone have an idea? Or shouldn’t we implement this? Are there other options to share session over multiple domains? (NOT subdomains!)

  • 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-12T19:26:17+00:00Added an answer on June 12, 2026 at 7:26 pm

    I’ve achieved this system by using an OAuth type flow but we replaced the Consumer with the User.

    So each domain would have the authenticated Access_Token in its own session.
    You would then use that Access_Token to get information about user from an api.

    I also solved the session problem using session_set_save_handler and storing sessions in a database table… This table would have the Access_Token also, making it really easy to find the session with a DB Query.

    Hope this helps with ideas.

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

Sidebar

Related Questions

Hey all,     I'm redesigning the infrastructure for a website, and I want to make
We all know how hip it is to make our Ajax calls using address
I am having our company websites (x8 total 500,000per month) on a 1/3 share
Our websites article backend does not allow access to anything above </head> which prevents
We are currently transferring our websites from Windows 2003 (32-bit) to Windows 2008 (64-bit)
After having this issue on our websites over secure SSL connections for Office file
Around 90% of the pages for our websites have no .Net code embedded in
I have started using ajax/jQuery in our websites / application. There are many plugins
I would like to add a comments section to our postings. Our websites are
Following recent hardware problems, I attempted to switch a couple of our websites to

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.