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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:54:00+00:00 2026-05-12T12:54:00+00:00

If you multiple subdomains e.g.: sub1.domain_name.com sub2.domain_name.com Is there a way to have a

  • 0

If you multiple subdomains e.g.:

sub1.domain_name.com

sub2.domain_name.com

Is there a way to have a user be able to log into both of these without issues and double login issue?

The platform is Python, Django.

  • 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-12T12:54:00+00:00Added an answer on May 12, 2026 at 12:54 pm

    Without information regarding what platform you are using, it is difficult to say. If you use cookies to store authentication information, and you are using subdomains as you describe, then you can force the cookie to be issued for the highest level domain, e.g. domain_name.com.

    This will be accessable by both sub1 and sub2, and they could each use that for their authentication.

    EDIT:

    In the settings.py for each application running under the subdomains, you need to put
    SESSION_COOKIE_DOMAIN = ".domain_name.com" as per the django docs

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

Sidebar

Related Questions

I have a Dotnetnuke environment with multiple portals running at different subdomains (serviceA.company.com, serviceB.company.com).
I am looking for a way to have multiple-level subdomains on a server running
I have a PHP project which has its multiple subdomains(a.domainone.com, b.domainone.com, c.domainone.com) hosted on
I am building a site in asp.net and have multiple subdomains. For example, one.cookies.com
I am trying to use session data on multiple subdomains: www.example.com my.example.com test.example.com whateversub.example.com
I have multiple subdomains trying to use a single subdomain for authentiction using forms
I have a site with multiple subdomains and I want the named subdomains robots.txt
Under the site-enabled www.test.com , I have multiple VirtualHost configurations. ServerName varies (eg. test1.com
I have a Rails 2 app that serves multiple domains. That is, http://domainA.com and
We're building an application for product support. The idea is to have multiple subdomains,

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.