This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, 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
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.
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.
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.