Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lost session with multiples hosts #60

Closed
leandrolimasi opened this issue Mar 24, 2016 · 4 comments
Closed

lost session with multiples hosts #60

leandrolimasi opened this issue Mar 24, 2016 · 4 comments
Labels

Comments

@leandrolimasi
Copy link

I use multiple host on a proxy configuration. When I call several at the same time , I 'm losing session and the rest call always returns error 204 No content.

Any idea?

@chimurai
Copy link
Owner

@leandrolimasi
Copy link
Author

Sorry,

proxys configs:

proxyMiddleware('/z14/', {target: 'http://10.11.100.54/', changeOrigin: true, logLevel: 'debug'}),
proxyMiddleware('/z02/
', {target: 'http://10.16.100.138/', changeOrigin: true, logLevel: 'debug'})

my localhost context is "/z14b/"

When in my page html calls multiples request over z14 and z02, my session in z14b is lost.

@chimurai
Copy link
Owner

Isn't it as simple as the target servers overwriting each others session cookie?

You should be able to configure the session cookie name differently for each server, so the sessions won't clash and override each other...

Don't think this is a http-proxy-middleware issue. Since it doesn't do anything with headers and cookies. If it is an issue is probably in the http-proxy library.

@chimurai
Copy link
Owner

Feel free to re-open the issue, if you think it's a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants