This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 2049
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=..." ?
 
Similar Threads
cookies and JSESSIONID
Enthruware url rewriting question
JSESSIONID
what's the security issue about cookie ?
encodeURL and cookie