<div>
                    <span style="font-size: 17px;">Hi, I am developing a web application with GWT, protected by Shibboleth via Apache's module. The backend is served with Glassfish.</span>
                </div><div><span style="font-size: 17px;"><br></span></div><div><span style="font-size: 17px;">My application is configured as such.</span></div><div><span style="font-size: 17px;"><br></span></div><div><div>&lt;Location /myapp&gt;</div><div>&nbsp; &nbsp;AuthType shibboleth</div><div>&nbsp; &nbsp;ShibRequestSetting requireSession 0</div><div>&nbsp; &nbsp;ShibUseHeaders On</div><div>&nbsp; &nbsp;Require shibboleth</div><div>&lt;/Location&gt;</div></div>
                <div><div><br></div><div><span style="font-size: 17px;">The strange behavior is that when I send multiple requests (typical AJAX behavior)&nbsp;simultaneously&nbsp;to the server, it will result a session loss. That is the request leads to the creation of a new session, instead of holding on to the previously created session, on the server side. If I took off the Shibboleth, then things work fine. If I change the ShibUserHeaders to ShibUseEnvironment, then it will also work. I wonder what has caused this and is there anyway to get around it?</span></div><div><span style="font-size: 17px;"><br></span></div><div>--&nbsp;</div><div>Xiaoshu Wang</div><div><br></div></div>