apache mod_proxy, page reload and sessions


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

  ProxyPass /myAppVaadin/VAADIN/
  ProxyPassReverse /myAppVaadin/VAADIN/
  ProxyPass /myAppVaadin/APP/
  ProxyPassReverse /myAppVaadin/APP/
  ProxyPass /
  ProxyPassReverse /

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,

This effect is gone after I add

ProxyPassReverseCookiePath /myAppVaadin /

to the apache configuration :slight_smile: