Thanks Craig.  That's a good suggestion, I'll recompile Tomcat.

I need to do this since we have many infrastructure type legacy apps and
third party websites that look for this cookie.  It's much easier to change
the cookie name rather than trying to change every app and third party that
depends on this cookie.  I know I could create another cookie, but I wanted
to take advantage of Tomcat's session management and cookie setting without
having to duplicate it.

BTW, I figured out what I was missing.  There were a couple of classes in
the AJP connector that had to be recompiled.  It works now.

Thanks,
Subir

-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 12:16 PM
To: Tomcat Users List
Subject: Re: I'm sure someone has tried this!! RE: Problem changing the
defau lt cookie name JSESSIONID 



I doubt too many people have done this, since changing the cookie name
violates the servlet spec, and therefore it's a *really* bad idea.

Doing partial recompiles of a large application like this seems like a
chancy thing .. you are assuming that you know *all* of the dependencies,
including the indirect ones.  Recompile *all* of Tomcat, following the
procedures described in the BUILDING.txt document in the source
repository.

Craig


On Thu, 16 May 2002, Subir Sengupta wrote:

> Date: Thu, 16 May 2002 09:38:38 -0700
> From: Subir Sengupta <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: I'm sure someone has tried this!!  RE: Problem changing the
>     defau lt cookie name JSESSIONID
>
>
>
> -----Original Message-----
> From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 8:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: Problem changing the default cookie name JSESSIONID
>
>
> Hi All,
>
> I need to change the cookie name form JSESSIONID to something else.  I
> changed the default in org.apache.catalina.Globals.java.  I also
recompiled
> all the classes that had references to the Globals.SESSION_COOKIE_NAME
> constant.  After re-jarring catalina.jar I restarted Tomcat and it still
> created cookies with JSESSIONID as the cookie name.
>
> Can anyone tell me what I'm missing.  Is there any other class that I
> missed.  I did grep through the class files and found my cookie name, so
it
> looks like everything compiled correctly.
>
> Also, does anyone know which class creates new cookies?
>
> I'm using Tomcat 4.0.3, Apache 1.3 and running on a Linux server.
>
> Thanks in advance,
> Subir
>
>
>  <<Subir Sengupta (E-mail).vcf>>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to