Languages

How to share cookie between subdomain and domain?

2 points
Asked by:
Kate_C
2895

I am buidling web page where I whould like to use language vesions. I got idea to create subdomains. When I go from domain to subdomain my user is not logged in there. I noticed that the session cookie differs.

I whould like to share session cookie between:

  • my-domain.com
  • en.my-domain.com
  • fr.my-domain.com

I am using Tomcat 9 and Spring Boot 2.

Thanks for help!

0 answers
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.