Share a sessionid between tomcat and nginx subdomain
<p>I am making a POST from localhost page (tomcat) to sub.localhost (nginx server which passes the request to tomcat). I need this POST call to have the same session id that localhost page does, because POST call authenticates. </p>

<p>I see that GET and POST requests to same domain have the same session id. Now when i post to a subdomain, it has a different one. How can i modify my configuration so that the session id remains the same?</p>