-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi there ! We develop web applications from Zk 6.5 and have never seen session timeout work properly :( I tried tons of combination of the timeout configs, no success...
Now my config is:
<session-config>
<device-type>ajax</device-type>
<session-timeout>30</session-timeout>
<automatic-timeout>true</automatic-timeout>
<timeout-uri>/timeout.html</timeout-uri>
</session-config>
According to the documentation I except:
after 30 seconds of inactivity the page will be redirected to timeout.html (and probably the session will be invalid or a new one).
What happens:
nothing, when I click a button after 30 sec, i got js alert page with the message:
The server is temporarily out of service. Would you like to try again? (expected expression, got '<' (SyntaxError))
Any help is appreciated
morti
Edit:
Ok then, mistery solved, problem not:
Quick fix was add /zkau* paths to my "unprotected" contexts, for which my AccessFilter do not check authorization, but only a simple doChain().
Now I get what I wanted to see, but zk requests now are unprotected. I dont want to figure out these 2-3 request's special characteristics to let only them unprotected :(
Is there any solution besides filtering out the specific auRequest ?
Hello mortella,
You can always use session timeout using the web.xml
https://www.mkyong.com/servlet/how-to-configure-the-session-timeout-in-servlet/
Best Regards,
Darksu
Asked: 2016-10-24 07:41:54 +0800
Seen: 40 times
Last updated: Oct 30 '16