To configure whether and how HTTP sessions use cookies and URL rewriting, edit the session-properties and cookie-properties elements in the sun-web.xml file for an individual web application. For more about the properties you can configure, see session-properties in Sun GlassFish Communications Server 2.0 Application Deployment Guide and cookie-properties in Sun GlassFish Communications Server 2.0 Application Deployment Guide.
For information about configuring default session properties for the entire web container, see Chapter 8, SIP, Web, and EJB Containers, in Sun GlassFish Communications Server 2.0 Administration Guide and the Sun GlassFish Communications Server 2.0 High Availability Administration Guide.