HTTPOnly flag is used to prevent Client side scripts to read the cookies (provided the Browser Supports it). By Default Cookie is set to HTTP Only in 11g, so when we try to read the cookies from a JAVA Script, we wont be able to read it.
Some applications dont work if the cookie is set to HTTPOnly, it can be disabled by adding the following in Session Descriptor.
When we enable cookie secure, we the cookie is sent over a secure connection.
So while using this feaure we should ensure that the application is acessible over SSL.
It can be enabled by adding the following in the session-descriptor. Note url-rewriting should be disabled.
<cookie-secure >true</cookie-secure >
When any secure resource is accessed over SSL, Weblogic Server adds another cookie named _WL_AUTHCOOKIE_JSESSIONID_ to the header for greater security. One must send both, the jsessionid and wl authcookie for all secure reources which are accessed over SSL. If wl authcookie is missing then one has to authenticate again. The wl authcookie is sent encrypted over the network which makes it so secure.
It is enabled by default. To disable it, we need to add AuthCookieEnabled=”true” in the WebServer element in the config.xml
<WebServer Name=”myserver” AuthCookieEnabled=”true”/>
The code examples seem flawed is two places.
To disable url-rewriting the code should be:
To disable AuthCookieEnabled, the code should be:
Am I missing something?
We have tried the configuration locally and it works fine.. we can cross check..
Comments are closed.