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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:42:53+00:00 2026-06-16T19:42:53+00:00

An unauthenticated user arrives at www.example.com. The user logs in on: https://api.example.com/login After successful

  • 0
  1. An unauthenticated user arrives at http://www.example.com.

  2. The user logs in on: https://api.example.com/login

  3. After successful login, the user is redirected to: https://dashboard.example.com

  4. When going back to: http://www.example.com – the session is kept, and the user can now log out from there

An example is shown by Heroku, which shares cookies among the apps as in the screenshot.

cookies from Heroku

How does this setup work?
How can this setup be imitated with Rack apps?

  • 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-16T19:42:54+00:00Added an answer on June 16, 2026 at 7:42 pm

    using SSO/OpenID style techniques, for example by redirecting via forms and transmitting the authentication challenge tokens back and forth in the form parameters.

    For example look how stackovervflow and sistersites do it. You can log into one using the other and it is implemented via forms and redirects.

    For strictly subdomains, you can just use a single session cookie which is sent to all hosts within “*.domain.com”

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

Sidebar

Related Questions

so suppose my server is located in http://www.example.com I then put a file file.exe
IN this example: https://github.com/RailsApps/rails3-devise-rspec-cucumber I get an error because doing visit('/users/sign_out') (in capybara..to ensure
I need unauthenticated users to first be redirected to a login page on an
For example, if users want to download /webroot/files/bigimage.jpg, they are given a URL www.domain.com/download.php?filename=bigimage.jpg.
So, I want to preserve a specific session variable after the user logs out.
This is a newbie question to AJAX experts: In case an unauthenticated user tries
I am developing a REST API that supports two kinds of authentication protocols: login
a user of my website must first login to see every page of it.
Ok, so I've got an interesting case of login page redirection going on. My
I automatically create users for visitors that submit my webforms as per http://www.mikewagan.net/2010/10/drupal-create-user-accounts-through-the-webform-module/ This

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.