I am using an embedded Jetty implementation as my servlet container. Here is a small config snippet:
WebAppContext context = new WebAppContext(warUrlString, "/");
SessionHandler sessionHandler = new SessionHandler();
SessionManager sessionManager = new HashSessionManager();
// in seconds, low for testing
sessionManager.setMaxInactiveInterval(20);
context.setSessionHandler(sessionHandler);
There are a few items on various pages that will update periodically through AJAX. Will these requests prevent a HttpSession from invalidating?