aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSESSIONID mandatory name only in cookies not in url rewriting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSESSIONID mandatory name only in cookies not in url rewriting" Watch "JSESSIONID mandatory name only in cookies not in url rewriting" New topic
Author

JSESSIONID mandatory name only in cookies not in url rewriting

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
Why is it that for session tracking with cookies the cookie name must be JSESSIONID whereas in url rewriting the string appended for eg in tomcat ;jsessionid is vendor dependent?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

"jsessionid" is also mandatory for url rewriting. It is not vendor specific.


[My Blog]
All roads lead to JavaRanch
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
But Headfirst says its vendor specific and its not there in errata
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

From the specification :


SRV.7.1.3 URL Rewriting
URL rewriting is the lowest common denominator of session tracking. When a
client will not accept a cookie, URL rewriting may be used by the server as the basis for session tracking. URL rewriting involves adding data, a session ID, to the URL path that is interpreted by the container to associate the request with a session. The session ID must be encoded as a path parameter in the URL string. The name of the parameter must be jsessionid. Here is an example of a URL containing encoded path information: http://www.myserver.com/catalog/index.html;jsessionid=1234
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
So I guess,I am more inputs to be added to errata of HFSJ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSESSIONID mandatory name only in cookies not in url rewriting