HTTP Status 408 error with tomcat form authentication

My application is written in JSP and has forms-based authentication . I am using Apache and Tomcat 7.

Here is my problem:

Sometimes, when the session time is running and when I try to re-enter the application, it displays an error message below:

HTTP Status 408 - The time allowed for the login process has been exceeded. If you want to continue, you must either double-click twice or re-click the link you requested, or close and reopen the browser

Evaluation if someone can help me solve this problem.

+4
source share
2 answers

, cookie Internet Explorer. , .

1. cookie Internet Explorer

"" → " ", "", "". " cookie", , cookie , " cookie ".

2. http-equiv HTML

<meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate"> 
<meta http-equiv="Pragma" content="no-cache"> 
<meta http-equiv="Expires" content="-1"> 

.

response.addHeader("Cache-Control", "no-store,no-cache,must-revalidate");
response.addHeader("Pragma", "no-cache");
response.addHeader("Expires", "-1");
+1

, 25 .
- :

<script>
setTimeout(function(){ location.reload(); },1000 * 60 * 25);
</script>

(, )

: auth- FORM, yourLoginPage.jsp.

j_security_check. , , , -. , , . 30 Tomcat, - 30 .

0

All Articles