jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Session Tracking and URL Rewriting?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Tracking and URL Rewriting??" Watch "Session Tracking and URL Rewriting??" New topic

Session Tracking and URL Rewriting??

preeti dengri
Ranch Hand

Joined: Nov 30, 2000
Posts: 111
Acc to what i know is --most servers revert to url-rewriting when cookies are unsupported or are disabled.then what is the association or comminication between HttpSession objects and url rewriting??
and What if i add "back to java books catalog" and a "back to xml books catalog" links(a href) on an "Status Of Your Order" Page during a shopping cart session example,will it take care of the objects associated with the session by itself and is there any need of url rewriting in this particular case??
please help.I m stuck with these concepts.
preeti dengri
Ranch Hand

Joined: Nov 30, 2000
Posts: 111
Hi all,
waiting for help
sharad goswami
Ranch Hand

Joined: Jan 18, 2001
Posts: 51
of course u will have to take care by url rewritting incase u provide href for back because http being stateless it will not take care of session object itself.

Stop The World I Want To Get Off.
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
Although I never tried it with url rewriting, the way I understood it was that when using session tracking in Java, cookies were used by default, and if cookies were disabled, then url rewriting was used. It was also my understanding that this was all done automatically and you really didn't need to worry about it, just like you don't have to worry about the cookies when they are used for session tracking.
Try it out and see what happens, that's the best way.
Magnus Rydin

Joined: Jun 12, 2001
Posts: 2
The application server should rewrite the URL for you automatically if the client does not support cookies.
BUT, most application servers do not do this for dynamically created URL:s. For these cases, you have to tell it to rewrite the URL.
I agree. Here's the link: http://aspose.com/file-tools
subject: Session Tracking and URL Rewriting??
It's not a secret anymore!