Srini:
The decision to be taken by the
rules is whether the target page (to which the request is being redirected) participates in a session or not. If the target page doesn't participate in a session, then there is no point in rewritting the URL with session info. IMO, thisis the rule.
Whereas if you use encodeURL(...) method, it will rewrite the URL based on whether the client has enabled or disabled Cookies.
So in a way, the rules for encodeURL(...) method are determined by the client you are talking to. On the other hand, with the encodeRedirectURL(...) method, the rules are determined by both the server and the client.
Anyother views/explanations....
- satya
ps (response to another
thread):
Sorry, I couldn't shut-up...