aspose file tools*
The moose likes Servlets and the fly likes How to check if the Servlet URL includes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to check if the Servlet URL includes ";jsessionid=..." ?" Watch "How to check if the Servlet URL includes ";jsessionid=..." ?" New topic
Author

How to check if the Servlet URL includes ";jsessionid=..." ?

Artemesia Lakener
Ranch Hand

Joined: Jun 21, 2005
Posts: 162
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: 2057
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check if the Servlet URL includes ";jsessionid=..." ?