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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:57:05+00:00 2026-05-15T22:57:05+00:00

Rarely our system mixes logged in users and I can’t figure out why. Here

  • 0

Rarely our system mixes logged in users and I can’t figure out why.

Here is the scenario:
2 users log in (A and B) normally each one has his own ID, at some point one of the users (A) takes the ID of the other user (B) and contribute to the website as if he is B.

Technically that’s what is going on:

1- 2 users logs in: each user requests a “log in” action from Single Sign On(SSO) server which runs on PHP, and a session is created for each user (sessions are stored at Memcached-X)

2- The users have different IDs: Each user will have another session on the web server which runs on Ruby (RoR) also saves sessions on Memcached-Y. For each page they enter on RoR there is an iFrame check that request an authentication from the user browser to the SSO.

3- At some point user A becomes B and B stays as B: The log files from SSO show that the user A is still user A and user B is still user B, while the RoR’s logs show that user A become B given that it still have the same session id. At that particular moment we checked keys coming out from RoR’s memcached and they returned the right values.

What is going on ? Does SSO give wrong values to RoR,or does the RoR mix everything up or are the Memcached servers making mistakes ?

Please help I am running out of ideas…
Thanks.

  • 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-15T22:57:06+00:00Added an answer on May 15, 2026 at 10:57 pm

    Is there some sort of time check when querying which session to use? If it’s always user A turns into user B (I’m assuming here that user A logs in FIRST) then perhaps somewhere along the way user A looks up session info and sorts by time.

    It sounds like it’s in the communication between ROR and SSO, if both logs are confirming the correct user IDs/session IDs then it has to be somewhere in between when that check happens?

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

Sidebar

Related Questions

Recently, sometimes (rarely) when we export data from our application, the export log contains
We have a problem with our SAAS site. We sometimes have users kicked out
At the office, when I leave for the night I very rarely log off
We have an application that uses various system tray icons to communicate with users.
we have faced a problem with our production system yesterday which I am unable
We are having two problems with Visual Studio Team System 2008. Very rarely, if
Inspired by this question , the asker assumes that the users of a system
I've got a thread that goes out and looks up data on our (old)
Ok, so here's the problem. In our production environment (ASP.Net) our servers have a
My co-workers rarely (if ever) use XML Comments when working on our software (I

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.