[jboss-jira] [JBoss JIRA] Commented: (JBAS-6164) jboss-web/use-session-cookies doesn't work

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Thu Nov 6 11:43:12 EST 2008


    [ https://jira.jboss.org/jira/browse/JBAS-6164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12437323#action_12437323 ] 

Remy Maucherat commented on JBAS-6164:
--------------------------------------

Ok, so this is about the metadata project for AS 5. Apparently it got switched to using a session-cookie int or something like it (while the use-session-cookies boolean is still there but unused). No idea which one it is supposed to be. It is indeed redundant with the context.xml configuration.

> jboss-web/use-session-cookies doesn't work
> ------------------------------------------
>
>                 Key: JBAS-6164
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6164
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>    Affects Versions: JBossAS-4.2.0.GA, JBossAS-4.2.1.GA, JBossAS-4.2.2.GA, JBossAS-4.2.3.GA, JBossAS-5.0.0.CR2
>            Reporter: Takayoshi Kimura
>            Assignee: Remy Maucherat
>            Priority: Minor
>
> To reproduce, create a .war directory under the deploy directory and put the following jsp file:
> <%
> javax.servlet.http.Cookie[] cookies = request.getCookies();
> if (cookies != null) {
>   for (int i = 0; i < cookies.length; i++) {
>     if ("JSESSIONID".equals(cookies[i].getName())) {
>       out.println("Session ID cookie found: " + cookies[i].getValue());
>       break;
>     }
>   }
> }
> %>
> And put WEB-INF/jboss-web.xml as well:
> <jboss-web>
>   <use-session-cookies>false</use-session-cookies>
> </jboss-web>
> Then boot JBoss, hit the jsp file and reload. You'll see the session cookie is enabled.
> Tested with AS 5 svn rev 80575, it shows:
> 2008-11-06 16:22:58,243 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/test, vfsUrl=test.war
> 2008-11-06 16:22:58,244 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Using session cookies default setting
> So it seems ignored.
> WEB-INF/context.xml works:
> <Context cookies="false" />

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list