<div dir="ltr">Thanks Stuart, that did the trick.<div><br></div><div>I&#39;m extending FileResourceManager to convert from the web path to an internal storage path and also trying to validation against the session to verify the logged-in state.  However, I&#39;m running into a roadblock because `getResource` doesn&#39;t have access to the exchange to be able to get the cookie value.  I tried using ThreadLocal, but it&#39;s dispatched to another thread so that won&#39;t work either.  How am I supposed to access a cookie or session from within a ResourceManager.getResource?</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 29, 2016 at 8:05 PM Stuart Douglas &lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For servlet or Undertow native?<br>
<br>
For native it is controlled by the<br>
io.undertow.server.session.SessionCookieConfig implementation that is<br>
passed to the session manager.<br>
<br>
For Servlet the standard way to do it is to use a<br>
ServletContextListener to modify the domain under<br>
javax.servlet.ServletContext#getSessionCookieConfig<br>
<br>
Stuart<br>
<br>
On Fri, Aug 26, 2016 at 11:31 PM, Hicks, Matt &lt;<a href="mailto:matt@matthicks.com" target="_blank">matt@matthicks.com</a>&gt; wrote:<br>
&gt; I can&#39;t seem to figure out any way to configure the session manager to<br>
&gt; define the domain of the cookie.  I want the domain to be *.<a href="http://mydomain.com" rel="noreferrer" target="_blank">mydomain.com</a> so<br>
&gt; the cookie is shared across multiple sub-domains.  Can someone give me an<br>
&gt; example of how to do this?<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; undertow-dev mailing list<br>
&gt; <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br>
</blockquote></div></div>