Hi all, I have a problem with the implicite(?) URL rewriting of the response.sendRedirect() method using absolute URLs (http://servername/filename?querystring). I want to send the user to another server.
With JRun cookies disabled on the server, the response.sendRedirect() method seems to do an implicite URL rewriting, it inserts a ";jsessionid=123" between the URL and the question mark of the query string. The insertion of a session id might be consistent with the Servlet API, but almost every server seems to have problems to parse this string in this place, e.g. gives a "file not found" error. And I believe the sendRedirect() method shouldn't do this, because this behavior is undesired and it's nowhere documented. I've read the Knowledge Base article (http://www.macromedia.com/v1/handlers/index.cfm?ID=22274&Method=Full), which describes a workaround for standard URLs like <a href="<%= ...%>", but within the sendRedirect() I don't have a chance to replace the semicolon by a question mark using string operations (as I understand the text), because the insertion will happen always if there exist only a question mark. The only workaround I've found out, is to append the ";jsessionid=123" string at the end of the query string and use a dummy parameter - only in this case the sendRedirect() method doesn't insert the string. But it looks strange, it is unnecessary and I'm hoping no other application on other servers will have problems with this. Does anyone have other suggestions or solutions? For our application we need to deactivate the session cookies - it's mandatory for us. And we can't force our customers to activate or deactivate cookies in their browsers. Greetings Jessica ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
