I configured nginx in front of an web app(apache). because there is some dynamic content i had to implement using SSI - Server sides include which works perfectly.
the problem is that the web app needs a session cookie for the dynamic content and to be accesable in the SSI. everything worked great until i tested the project with a friend. because nginx caches headers(even Set-Cookie header) the session id would be shared between all users.
to resolv this problem i used proxy_hide_headers Set-Cookie on the root and proxy_pass_header Set-Cookie on the ssi requests and now all Set-Cookie headers are ignored(even from ssi). is there a way to resolv this problem?
thanks in advance