java - Session expires before session timeout -


to keep session alive pinging server every 30 seconds, if there activity user. sometimes(not consistently happening) after pinging, server doesn't renew session. session timeout 30 minutes. first request sent @ 12:27 , next @ 12:35.....but second request getting unauthorized 401 error. using java on server side , ie10 browsing. unfortunately, reputation low post images of response headers of both requests. in advance. enter image description here enter image description here

web.xml

<?xml version="1.0" encoding="utf-8"?> <!-- use definition if using java ee 6 container stops eclipse      complaining 3.0 not valid version --> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="      http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">     <!-- session configuration -->     <session-config>         <session-timeout>30</session-timeout>     </session-config> </web-app> 


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -