JSESSIONID添加到URL当WebLogic重定向到Apache? [英] JSESSIONID added to URL when Weblogic redirects to Apache?

查看:958
本文介绍了JSESSIONID添加到URL当WebLogic重定向到Apache?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序是WebLogic上运行。

Our application is running on WebLogic.

在某一点上的WebLogic被重定向到Apache允许用户访问PDF文件。

At some point the WebLogic is redirecting to Apache to allow the user to access PDF files.

这恰好经过:

final String encodedURL = resp.encodeRedirectURL(redirectURL);                
resp.sendRedirect(encodedURL); //ok here because redirection to other  server and not  to itself

问题是在WebLogic追加JSESSIONIDto的URL和Apache未能发挥PDF文档。

The problem is that WebLogic appends a JSESSIONIDto the URL and the apache fails to serve the PDF Document.

如何从添加JSESSIONID到URL prevent的WebLogic?

How can I prevent WebLogic from adding the JSESSIONID to the URL?

推荐答案

添加此我Facelets的基于应用程序的web.xml避免JSESSIONID:

Adding this to my Facelets based application's web.xml avoids JSESSIONID:

<session-config>
    <tracking-mode>COOKIE</tracking-mode>
</session-config>

这篇关于JSESSIONID添加到URL当WebLogic重定向到Apache?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆