-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Shrileckha,
On 9/19/14 5:19 PM, Shrileckha Chaithanya wrote: > I see the cookies that i set explicity set in the program. But I > dont see the cookie I have set in the tomcat context file like > this: > > > <Context sessionCookieName="MKT2SESSIONID"> </context> Did you login or otherwise create a session? If so, do you get a JSESSIONID cookie instead of MKT2SESSIONID? - -chris > On Fri, Sep 19, 2014 at 4:40 PM, Shrileckha Chaithanya < > [email protected]> wrote: > >> It worked but I am not able to get this cookie name via >> >> request.getCookies() call. Should I add anything in the tomcat >> context in order to get it from the request? >> >> Cookie[] cookies = req.getCookies(); if(cookies != null){ for >> (Cookie cookie : cookies) { log.info("cookie name >> :"+cookie.getName()+"cookie.value() :"+cookie.getValue()); >> >> } } >> >> Pls let me know. >> >> Thanks, Shrielckha Chaithanya >> >> On Fri, Sep 19, 2014 at 11:37 AM, Shrileckha Chaithanya < >> [email protected]> wrote: >> >>> thanks! it worked. >>> >>> On Thu, Sep 18, 2014 at 5:19 PM, Mark Eggers < >>> [email protected]> wrote: >>> > On 9/18/2014 2:13 PM, Shrileckha Chaithanya wrote: >>>>>> Thx for responding. I did like look at this link. Can you >>>>>> provide with proper syntax to rename the cookie name? >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On Sep 18, 2014, at 5:01 PM, Felix Schumacher >>>>>>> <[email protected]> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On 18. September 2014 21:33:20 MESZ, Shrileckha >>>>>>>> Chaithanya <[email protected]> wrote: Hi Tomcat >>>>>>>> team, >>>>>>>> >>>>>>>> I need to rename the JESSIONID cookie name to >>>>>>>> MKTSESSIONID. >>>>>>>> >>>>>>>> I updated the catalina.bat file to use below. >>>>>>>> >>>>>>>> can you pls help? >>>>>>>> >>>>>>>> set JAVA_OPTS=%JAVA_OPTS% >>>>>>>> -Dorg.apache.catalina.JSESSIONID=MKT2SESSIONID >>>>>>> That seems to be a jboss option. For tomcat 6 you can >>>>>>> use org.apache.catalina.SESSION_COOKIE_NAME and for >>>>>>> tomcat 7+ you can set it in the context. See >>>>>>> > http://tomcat.apache.org/migration-7.html#Session_manager_configuration. >>>>>>> >>>>>>> >>>>>>> > > Regards >>>>>>> Felix >>>>>>>> >>>>>>>> Thanks, Shrileckha Chaithanya > > For Tomcat 7: > > > http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes > > For Tomcat 8: > > > http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes > > Look for sessionCookieName > > Setting an attribute on an XML node in general: > > <Context sessionCookieName="FOO"> </Context> > > . . . just my two cents /mde/ > >>>> >>>> --------------------------------------------------------------------- >>>> >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: >>>> [email protected] >>>> >>>> >>> >> > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUHbTtAAoJEBzwKT+lPKRYIVsP/jmRvXbiM+vSkRtFLYXdvURt hyuyYqPzp/0LKkeASi02z1K1+ZJGlQpoZyeyL3qFMoaS8gLqhRdF8CSmNHC9oY0O /dVNT7SOGn+NMUktSH9Nm5iNaDh92WMqu6i7CDa1V1bKXq9BvCTS5ZlBloOuYX27 9YzRtGkdBLXcylR9LJ1wmpZeGPMAlGW/1IjDJFRikaa8LBeEVS/4gZwr4lTfLyFR lwfnuLkC/Ep8j/k3+HPrADbMAuDdnQPBXCk76Q67iFg6IJmqQ1wFlQVWJunDmxRJ kGQivzKKzIXVz2xpZCU6Z+xo5imm1rgBF2YZqHUFxbSQGV6gKWRejEHmF/6cq/EI UWx8wkUBo3NcneNw26XPizVKjIueQdrKEgfXeq0cwSY5ORNTRyB3s4dv8Yjgpmjr OrlgYe5pW6L4d3tAGvklIwLlCRbEWQ9iHfoAjXg5uFeFkNpFANN4VKUP9GhovAaB QD4exGSV3NOtFvcpbEcDFlZrwW4LDDI5wdCwhkyYyO7AErXi05wOKNWI6UxP4lGi /ujsUVcjPcMXcNGijLTRYNcaNfR5DGO1gx2MSJt5X7vmCVPN20ELCYrnIa2zT1AR d9wXjJepS31hftpGgKGoKD0ubcEisCkPJR+sxk/mJ0tAOHGAleEdUlDqksP9je9Z ngE0uUIqOSZYrm36ehob =Iu89 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
