title: Configuring session cookies in Weblogic
body: <p>I'm pretty new to Weblogic and I'm currently trying to convert a web application that I've been running using Tomcat on my local machine to work with Weblogic since our production servers are weblogic.  I'm having trouble configuring weblogic.xml so that I can access session attributes.  Currently my weblogic.xml looks like this...</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;session-descriptor&gt;
          &lt;cookie-name&gt;JSESSIONID&lt;/cookie-name&gt;
          &lt;cookie-domain&gt;localhost&lt;/cookie-domain&gt;
          &lt;cookie-path&gt;/domain&lt;/cookie-path&gt;
          &lt;cookie-secure&gt;false&lt;/cookie-secure&gt;
          &lt;url-rewriting-enabled&gt;false&lt;/url-rewriting-enabled&gt;
      &lt;/session-descriptor&gt;
      &lt;jsp-descriptor&gt;
          &lt;precompile&gt;false&lt;/precompile&gt;
          &lt;precompile-continue&gt;true&lt;/precompile-continue&gt;
          &lt;keepgenerated&gt;false&lt;/keepgenerated&gt;
      &lt;/jsp-descriptor&gt;
      &lt;context-root&gt;/domain&lt;/context-root&gt;
      &lt;library-ref&gt;
          &lt;library-name&gt;springLib&lt;/library-name&gt;
      &lt;/library-ref&gt;
  &lt;/weblogic-web-app&gt;
  </code></pre>
  
  <p>This does not seem to be working when I run locally.  Do I need to include the port number in the cookie-domain (i.e. localhost:7001)?  This seems to be the only glitch I haven't been able to resolve.  If anyone has any ideas please help.  Thanks in advance.</p>