How to check if the Servlet URL includes ";jsessionid=..." ?
Artemesia Lakener
Ranch Hand
Joined: Jun 21, 2005
Posts: 162
posted
0
Sometimes it is hard to say if the server append the ";jsessionid=..." at the end of URL. Theoretically if you use URL rewriting and client supports cookie, you should not see this in the URL, and if client doesn't support cookie you see this.
However, on the same client setting, I find that sometimes if I hit "refresh" of the first application page and then restart reviewing all the pages, this ";jsessionid=.." disappears.
so, how can I tell from program if the current URL includes this ";jsessionid=.." ?
thanks
Jesus Angeles
Ranch Hand
Joined: Feb 26, 2005
Posts: 2036
posted
0
i think, this is what happens,
IF the web application in the server allows url rewriting ...IF first time you talk to the server ......always the server replies with 'both' cookie and url rewriting ...ELSE ......IF server identifies you have cookies enabled .........he will not do url rewriting anymore ......ELSE .........he will do url rewriting ......END-IF ...END-IF ELSE ......(if you have cookies disabled, then state cant be kept in ..............this manner, unless maybe if u use ssl)... END-IF
hope that helps [ September 10, 2005: Message edited by: Jesus Angeles ]