Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, Steffen

PS: with the mod_proxy_ajp I have the same effect

share|improve this question
up vote 3 down vote accepted

This was missing:

ProxyPassReverseCookiePath /myAppVaadin /

This adjust the cookie path so that this is correct and with this the existing session will be taken while the user press the reload button of the browser

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.