Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
apache mod_proxy, page reload and sessions
Hi,
I use the apache "mod_proxy" to forward all requests to the glassfish server. The relevant apache config is:
# proxy to glassfish app
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /myAppVaadin/VAADIN/ http://127.0.0.1:8080/myAppVaadin/VAADIN/
ProxyPassReverse /myAppVaadin/VAADIN/ http://127.0.0.1:8080/myAppVaadin/VAADIN/
ProxyPass /myAppVaadin/APP/ http://127.0.0.1:8080/myAppVaadin/APP/
ProxyPassReverse /myAppVaadin/APP/ http://127.0.0.1:8080/myAppVaadin/APP/
ProxyPass / http://127.0.0.1:8080/myAppVaadin/
ProxyPassReverse / http://127.0.0.1:8080/myAppVaadin/
The problem is the following:
If I use my Vaadin web application without the proxy then the browser page reload button reloads the current view without a new session is created. But if I use the web application with the apache proxy the page reload button creates a new session (and I must login into my application again).
Anybody knowns how I can prevent that I get a new session if I reload a web page by using the apache proxy?
Thanks and regards,
Steffen
This effect is gone after I add
ProxyPassReverseCookiePath /myAppVaadin /
to the apache configuration :-)