How to keep the session active when redirecting from domain to subdomain in Express js/
问题 I am working on an Express project(MEAN). i have my login/register page at myDomain.com and on login i want to redirect the user to user.myDomain.com . I am storing the session in MongoDb using session storage module. I can redirect the user to the subdomain but since the session is not maitained in between the domain and subdomain.. it redirects user to the login page. I have looked and tried everything from Using Express and Node, how to maintain a Session across subdomains/hostheaders