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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:21:48+00:00 2026-05-12T05:21:48+00:00

I am building a small app as a service in django and now is

  • 0

I am building a small app as a service in django and now is the time to integrate it on some clients PHP web app.

Our client A from domain http://www.a.com handles his own authentication for his users and probably use cookies for sessions.

How could i make logged in users from his domain also logged in on my Django app dommain http://www.b.com/clientA/ ?

I see how i can make them reloggin on my domain and use an authbackend checking credential with domain A but that means the user will have to enter his login/pass twice: on http://www.a.com and http://www.b.com.

Accessing cookie from domain http://www.a.com is impossible for security reasons i think.

How would you handle this ?

  • 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-12T05:21:49+00:00Added an answer on May 12, 2026 at 5:21 am

    You are correct in assuming cookies from another domain cannot be accessed. However, if it’s on a subdomain, you should be able to access the cookies if they’re set correctly.

    If you absolutely must have them on completely separate domains, it’s going to be a bit tricky. If you can’t modify the existing PHP code, you can pretty much forget it.

    One option would be using OpenID – that may be the simplest way to tackle this, as there are OpenID libraries available for PHP and Python. OpenID would allow you to have a single-sign on like authentiction, and since it’s already used on various sites it is proven and works.

    Another option is writing a custom single sign-on system.

    The basic idea is that when a user arrives at your site, you direct them to a login site. This can be either in the PHP or Python end of things, or separate. Here, the user will sign in, and then the login generates a secret key – this can be a hash, random string, whatever as long as it’s not predictable – and the user is redirected back to the main site with the key.

    The main site then sees the user has a key, and sends a request to the login site behind the scenes to verify the user’s key.

    Now the user is logged in at one site. When the user visits the second site, it too redirects the user to the login site. Since the user had already logged in, the login site simply redirects the user back with a new secret key, and the second site verifies it from the login site and now the user is logged in without having to input their credentials another time.

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

Sidebar

Related Questions

I'm building a small web app in PHP that stores some information in a
In the app I'm building now I use some really small numbers( 4.12027703723203E-18 ,
I'm building a small PHP/Javascript app which will do some processing for all cities
Right now I'm building a small app that imports data from a spreadsheet and
I am building a small app that uses backbone.js on the client side, node.js/socket.io
I'm building a small web app that allows users to list their goals. I
I am building a small web app. In the app I open a window
I'm building a small personal web app in Ruby on Rails. I've set it
I'm looking to send tweets from a small app I'm building for the appengine,
I am building a small Web App that lets users reserve Office Rooms and

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.