0

I have a main domain example.com and a subdomain tenant.example.com. A user comes to http://example.com/login and logs In, By default, Django set a session cookie for example.com.

What I want is that Django set the session cookie for tenant.example.com instead of example.com.

How can I implement this?

  • Does this answer your question? [django: Is it possible to log a user into a subdomain, from another domain?](https://stackoverflow.com/questions/4814760/django-is-it-possible-to-log-a-user-into-a-subdomain-from-another-domain) – Abdul Aziz Barkat Apr 27 '22 at 02:48
  • @AbdulAzizBarkat I didn't get the perfect answer, I don't wanna use the wildcard `SESSION_COOKIE_DOMAIN=".myapp.com"`, How can do this without it? – Praveen Kumar Apr 27 '22 at 09:58

0 Answers0