IntelliJ Java IDE
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes URL-Rewriting, Bullet Proof way? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "URL-Rewriting, Bullet Proof way?" Watch "URL-Rewriting, Bullet Proof way?" New topic
Author

URL-Rewriting, Bullet Proof way?

Herbert Maosa
Ranch Hand

Joined: May 03, 2000
Posts: 289
Since we dont know whether our application is going to be accessed by a client that supports cookies, or whether the user has cookies turned off or not... why would it ever be sensible to use session tracking and/or cookes for client state information in an e-commerce app. Does it not follow that URL Re-writing should always be used???
Herbert.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617

Well, the specs state that you if you are using cookies for session management, you should always encode your URL. Meaning if the client has cookies turned off, encodeURL will encode the JSessionID, otherwise it will leave it alone.
Something along those lines, it is in the Specs, I just don't remember the specific page
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
encodeURL will encode the JSessionID,
Actually, that would be jsessionid.
An important difference between cookies and URL-Rewritting.
it is in the Specs, I just don't remember the specific page
Chapter 7. SRV.7.1.1 and SRV.7.1.3.
Does it not follow that URL Re-writing should always be used?
Probably, but a vast majority of web users are in this age aware of cookies and am sure know how to accept cookies. Hence, it would be more reasonalble to first try cookies then fallback on the URL-rewritting for the few cases that don't use cookies. URL-Rewritting is more development effort than cookies.
regds.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
 
subject: URL-Rewriting, Bullet Proof way?
 
Threads others viewed
how to know the Status of the cookies
session management in servlets
Cookies
How to knw if client rejects Cookies ?
When to use URLRewriting ?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture