English 中文(简体)
jsf
原标题:session Logout problem in jsf
  • 时间:2011-01-27 13:32:43
  •  标签:
  • jsf

我正在研究网络应用,利用框架框架、框架。

不同的用户申请。 根据用户在哪类中的分布,这有利于不同用户类型在菜单上的联系。

Logout link in menu bar is provided to user once user is logged in. i have written my logout.jsp page.

<% session.invalidate(); response.sendRedirect(response.encodeRedirectURL("../login/login.jsf")); %>

虽然在登录后用户能够看到应当展示给特定用户的网页。

请提供帮助。

问题回答

这页显然是从浏览器藏匿处索取的。

可通过增加<条码>javax.servlet加以区别。 Filter, 载于url-pattern。 涵盖动态网页,如*.jsf,并在doFilter(方法>上填写如下。

HttpServletResponse httpResponse = (HttpServletResponse) response;
httpResponse.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
httpResponse.setHeader("Pragma", "no-cache"); // HTTP 1.0.
httpResponse.setDateHeader("Expires", 0); // Proxies.
chain.doFilter(request, response);

电话

session.invalidate(); 

增 编

request.logout();.

方法标志被确认为无效,因为在获得User Principal、获得RemoteUser和获得AuthType时所退还的价值。





相关问题
JSF a4j:support with h:selectManyCheckbox

I m having trouble with a JSF selectManyCheckbox and A4J support. The purpose is to run some action when a checkbox is selected. This works perfectly in Firefox. Yet, when testing in any IE (ie6 / ie7 ...

Mojarra for JSF Encoding

Can anyone teach me how to use mojarra to encode my JSF files. I downloaded mojarra and expected some kind of jar but what i had downloaded was a folder of files i don t know what to do with

如何拦截要求终止?

在共同基金中,如果用户要求终止,就需要采取一些行动。 我需要某种拦截器,但我不知道如何这样做。 我需要帮助。 增 编

ICEFaces inputFile getting the file content without upload

Is there any way of just getting the content of the browsed file without any upload/file transfer operations? I currently use ICEFaces inputFile component but I do not need the default uploading ...

Weird behaviour of h:commandLink action (MethodExpression)

I have two JSPs where I am displaying some info from database in a h:dataTable. One of them is showing all the info, and one of them user specifically. I have showXML.jsp that shows the "XML" column ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...

热门标签