Skip to main content

John Yeary: Java EE 7 Tip of the Day: Programmatic Control of Session Tracking with ServletContextListener

Have you ever had a developer modify a web.xml file to change session configuration? Have they forgotten to change it back from "developer mode" back to "deployment mode"? I am sure all of you have done something like that at some point in time. I am no exception. This tip of the day comes from that very issue.
The issue here is that we want to control session tracking. In the web.xml file you may have something that looks like...

Community: Java Enterprise