Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Artemesia Lakener
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic