Share session data between 2 subdomains

前端 未结 3 961
忘了有多久
忘了有多久 2020-12-15 14:00

I am using tomcat 7.0.6 with jdk 1.6.0_22

Is it possible to share session data between 2 different domains with a common subdomain such as a.mydomain.com and b.mydom

3条回答
  •  执念已碎
    2020-12-15 14:44

    You can create your own session implementation using cookies. Sessions are handled (in most server side languages) using cookies and server side database or files. You create a token (using md5 on timestamp) and save it in file or database along with all session variables.

提交回复
热议问题