The reason I changed Tomcat source is to implement domain-level session cookie, such as mydomain.com. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176298#4176298 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176298