2011-04-04 73 views

回答

1
if you handle session manually in your application than you remove all session variable from your application and put the following java script in your page logout page 

<SCRIPT type="text/javascript"> 
    window.history.forward(); 
    function noBack() { window.history.forward(); } 
</SCRIPT> 
</HEAD> 
<BODY onload="noBack();" 
    onpageshow="if (event.persisted) noBack();"> 
0

您需要在聚焦頁面(即在登錄頁面)設置響應標題。 確保login.jsp頁面下面的代碼,

編碼:

response.setHeader("Cache-Control","no-cache");  
response.setHeader("Pragma","no-cache"); 

/* 注: 地方這個代碼中所有的代碼 */

,但我不不知道是否可以使用javascript/jquery完成相同的功能,「噢......我不這麼認爲!」