tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: help!
Date Fri, 19 Sep 2014 20:55:39 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Shrileckha

On 9/19/14 4:40 PM, Shrileckha Chaithanya 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.

What cookies /do/ you get? Does it look like the cookie name hasn't
changed, or are you not seeing any cookies?

- -chris

>> thanks! it worked.
>> 
>> On Thu, Sep 18, 2014 at 5:19 PM, Mark Eggers < 
>> its_toasted@yahoo.com.invalid> 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 
>>>>>> <felix.schumacher@internetallee.de> wrote:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 18. September 2014 21:33:20 MESZ, Shrileckha
>>>>>>> Chaithanya <cshrileckha@gmail.com> 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: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>> 
>>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUHJhLAAoJEBzwKT+lPKRYOuwP/0DpfgCuC3CndLN/es21woYW
FAB70eU+dJCcVXhjH3szVfoGSsEaDHMub4aZy3jZV4enlS3pPzu6CwrhPDYCXObs
PoptG91QsDpb3eEOBT+WgjUVN9C2pEE7qL+n5xHSiTcqbcp0A6XwCFJzrltTS3ou
d9RConNNVbq9soTP8t7F81PSMkfDmj056/60AHWcubvEhyJvDig39Jq90tyOrJtB
eY10Lw+JaLeeWiyrnBRV05ggVw0kW4I1JbfDlwBNpIyCC9HBkZPdYs2kcQ7Pa2LM
lP8USZ6LkLhqUefjaPAmkjaD9XpjeVOeSXX7eLULLvWc0BsgpsZz2zfyy2ofNqm4
QVcX54Lw5PzLcrQwfKsmMvcEVYVGgLkmBPzTbDvL87HJ05fQJ2f3bj7g8ZCffyky
Ljlz4/RJSLGJcCepRIbTVn+Iho958xYdXbwGb0a53IR0AWx/hSUiiunATH8rkm0s
KLs11hxYQLNrAl6YlS9xc8xVaOhoy14SimdiZvHDPdzFjVJDGFBV84EajNbYIgw8
+SnAFWVDyt3oTBsaJo0DoFsBiBUJiQNPQwM5E/YdczalYDIvKyz+YPCNDzGpzS9J
lhAc2AjyrCxEyqA5SzczCwwHzrb9C1/EKaHHEnU23+7W3mWxZu12fX4cWO8J/g8v
imMe+Fg0dkaZPdwBV85f
=UeIN
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message