You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by form post <fo...@hotmail.com> on 2007/09/21 00:24:03 UTC
JSessionId
Question about the url parameter, jsessionid.
As far as I can tell this should only appear if I have cookie disable.
However, I am getting this parameter when cookies are enabled.
I have a pretty simple web app. However, my index.jsp redirects to page that
is behind the dispatch controller. eg. index.jsp contains this line.
<c:redirect url="welcome.action"/>
This causes my tomcat (version 6) to append the jsessionid to the url as
well as adding a cookie.
Why does this happen? And how can I stop the jsessionid appearing on the
url.
Thanks
_________________________________________________________________
Enter to win a night a VIP night out at TIFF
http://redcarpet.sympatico.msn.ca/
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSessionId
Posted by David Smith <dn...@cornell.edu>.
How?? Tomcat doesn't get a cookie from the browser until it set's one.
--David
formpost wrote:
> If that is the case, surely the browsers request to the tomcat to server
> index.jsp would tell tomcat that cookies are enabled.
>
>
> David Smith-2 wrote:
>
>> In reality it happens anytime it finds the browser doesn't support
>> cookies. On the first request, both show up because tomcat doesn't know
>> if the browser supports cookies. On subsequent requests, it will act
>> accordingly depending on how the session id comes back (cookie or req
>> parameter).
>>
>> --David
>>
>> form post wrote:
>>
>>> Question about the url parameter, jsessionid.
>>>
>>> As far as I can tell this should only appear if I have cookie disable.
>>>
>>> However, I am getting this parameter when cookies are enabled.
>>>
>>> I have a pretty simple web app. However, my index.jsp redirects to
>>> page that is behind the dispatch controller. eg. index.jsp contains
>>> this line. <c:redirect url="welcome.action"/>
>>>
>>> This causes my tomcat (version 6) to append the jsessionid to the url
>>> as well as adding a cookie.
>>>
>>> Why does this happen? And how can I stop the jsessionid appearing on
>>> the url.
>>>
>>> Thanks
>>>
>>> _________________________________________________________________
>>> Enter to win a night a VIP night out at TIFF
>>> http://redcarpet.sympatico.msn.ca/
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSessionId
Posted by formpost <fo...@hotmail.com>.
If that is the case, surely the browsers request to the tomcat to server
index.jsp would tell tomcat that cookies are enabled.
David Smith-2 wrote:
>
> In reality it happens anytime it finds the browser doesn't support
> cookies. On the first request, both show up because tomcat doesn't know
> if the browser supports cookies. On subsequent requests, it will act
> accordingly depending on how the session id comes back (cookie or req
> parameter).
>
> --David
>
> form post wrote:
>> Question about the url parameter, jsessionid.
>>
>> As far as I can tell this should only appear if I have cookie disable.
>>
>> However, I am getting this parameter when cookies are enabled.
>>
>> I have a pretty simple web app. However, my index.jsp redirects to
>> page that is behind the dispatch controller. eg. index.jsp contains
>> this line. <c:redirect url="welcome.action"/>
>>
>> This causes my tomcat (version 6) to append the jsessionid to the url
>> as well as adding a cookie.
>>
>> Why does this happen? And how can I stop the jsessionid appearing on
>> the url.
>>
>> Thanks
>>
>> _________________________________________________________________
>> Enter to win a night a VIP night out at TIFF
>> http://redcarpet.sympatico.msn.ca/
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JSessionId-tf4490677.html#a12808205
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JSessionId
Posted by David Smith <dn...@cornell.edu>.
In reality it happens anytime it finds the browser doesn't support
cookies. On the first request, both show up because tomcat doesn't know
if the browser supports cookies. On subsequent requests, it will act
accordingly depending on how the session id comes back (cookie or req
parameter).
--David
form post wrote:
> Question about the url parameter, jsessionid.
>
> As far as I can tell this should only appear if I have cookie disable.
>
> However, I am getting this parameter when cookies are enabled.
>
> I have a pretty simple web app. However, my index.jsp redirects to
> page that is behind the dispatch controller. eg. index.jsp contains
> this line. <c:redirect url="welcome.action"/>
>
> This causes my tomcat (version 6) to append the jsessionid to the url
> as well as adding a cookie.
>
> Why does this happen? And how can I stop the jsessionid appearing on
> the url.
>
> Thanks
>
> _________________________________________________________________
> Enter to win a night a VIP night out at TIFF
> http://redcarpet.sympatico.msn.ca/
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org