so i trying to find when actual it is used and why??
we use url rewriting or cookies to maintain session across web server and browser because they talk using HTTP protocol which is a stateless protocol.Due to stateless nature of http protocol server never recognizes any client(browser) whether it has contacted him previously.so we need to maintain unique identifier in between them.Thats when session managment comes into picture.
when cookies are not available or disabled...
Normally session id is stored in cookie and browser will send that every time it makes request to server.In case if cookie is disabled.and you are not using url rewriting .It is not possible for the web server to recognize the client whether client is requesting first time or already in conversation. So we use url rewriting to generate the urls in the dynamic pages that means we append jsessionid in the url itself so when client submit the request server will get the session id from the url.
Could any give an example when it is used???