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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:05:42+00:00 2026-05-15T23:05:42+00:00

I am doing something in PHP where I have to read session values for

  • 0

I am doing something in PHP where I have to read session values for another session instance.
example

Browser1:
$_SESSION[‘value’]=”user1″;

Browser2:
$_SESSION[‘value’]=”user2″;

Browser1 will need to get “user2” value from certain request. The request will also include cookie(key, value).

How can I do that?

Thanks,
Wa’el

  • 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-15T23:05:42+00:00Added an answer on May 15, 2026 at 11:05 pm

    1 PHP server that handles SSO(single sign on) the other is a web applicarion runs on ruby on rails(ROR)

    […]

    but we need to implement new functionality where the ROR server needs to submit an authentication request at the SSO on behalf of the browser

    Your SSO model doesn’t need to work that way. In fact, it shouldn’t.

    SSO usually works like this. I’m using non-standard names because I’m tired and don’t remember what their official names are:

    • End User: The dude with the browser that needs to log in.
    • Page Server: The site the End User is trying to log in to.
    • Authentication Server: The site that actually owns the master version of the End User’s data.
    1. End User requests a page from the Page Server.
    2. Page Server checks End User’s existing login status. If the End User isn’t logged in, the Page Server redirects the End User to the Authentication Server with a unique token.
    3. The Authentication Server gets the request from the End User with the unique token. It does whatever it needs to do in order to log the user in.
    4. Once the user is logged in, the Authentication Server sends the End User back to the Page Server with another, different, unique token.
    5. The request the End User makes to the Page Server causes the Page Server to make a request to the Authentication Server. The request includes both the original unique token and the another, different, unique token.
    6. The Authentication Server responds to the Page Server with information about the user, or an error message if the tokens are invalid. Once user data is retrieved, the tokens are invalidated by the Authentication Server. (This prevents request replay. By the way, you should be using SSL for this entire process.)
    7. The Page Server logs the user in and stores whatever information it needs to about the End User.

    At no point does the Page Server “impersonate” the End User, and at no point do the Page Server or the Authentication Server need to touch each other’s End User session data.

    At no point does the Page Server get a copy of the user’s credentials. Actual authentication of the End User only happens on the Authentication Server. The Page Server requests data about the user after the Authentication Server bounces the user back with the proper request token.

    You can make this process more complex, if you’d like. For example, the URL that the Authentication Server bounces the user back to might need to be customizable. You can include the return URL with the End User request to the Authentication Server, but if you do so, you should sign it (using, say, HMAC) to ensure that some malicious cretin doesn’t manipulate it on the way.

    Clear as mud?

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

Sidebar

Ask A Question

Stats

  • Questions 530k
  • Answers 530k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The technique tries to make use of something called short… May 16, 2026 at 11:43 pm
  • Editorial Team
    Editorial Team added an answer You can do this in code: // Create a paragraph… May 16, 2026 at 11:43 pm
  • Editorial Team
    Editorial Team added an answer I've used Spket in the past. I find it particularly… May 16, 2026 at 11:43 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a php Twitter app which lets you mark tweets as favorite. I'm
Similar questions: Some characters in CSV file are not read during PHP fgetcsv() ,
I have a couple of simple PHP functions I am using. One to detect
I have a result set that when I use json_encode() in php, returns the
I have some trouble with regex and php here: <span style=color: blue>word1</span> word by
Hi I have a script that creates a file and stores it on the
fopen is failing when I try to read in a very moderately sized file
I have a problem with a query that works in phpmyadmin but not with
I have looked everywhere and surprisingly can't find a good solution to this! I've
I have an ISAPI filter that I am using to do URL rewriting for

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.