我们的应用程序在WebLogic上运行。
在某个时候,WebLogic会重定向到Apache以允许用户访问PDF文件。
这通过以下方式实现:
final String encodedURL = resp.encodeRedirectURL(redirectURL);
resp.sendRedirect(encodedURL); //ok here because redirection to other server and not to itself
问题是WebLogic将JSESSIONID附加到URL,apache无法提供PDF文档。
如何防止WebLogic将JSESSIONID添加到URL?
3条答案
按热度按时间pgccezyw1#
关键是在必要时在URL中包含会话ID。如果您认为没有必要包含会话ID,请不要对URL进行编码:
ercv8c1e2#
问题是,在我们的weblogic.xml中,cookie被禁用:
whe通过将它们设置为true来解决问题。在此特殊应用程序中,这不是问题:
83qze16e3#
将其添加到我的基于Facelets的应用程序的web.xml中可以避免JSESSIONID: