enthuware.jwpv6.2.646
Posted: Wed Aug 17, 2011 11:30 am
Answer:
servletContext.getEffectiveSessionTrackingModes().contains(SessionTrackingMode.URL)
to me seems like a better answer, in reading through the JavaDoc for ServletContext, this method will list what is currently in effect and not just the defaults. So IF prior to this method call there was
servletContext.setSessionTrackingModes(...) call then getEffective... would be better than getDefault...
I'm I wrong in my understanding?
servletContext.getEffectiveSessionTrackingModes().contains(SessionTrackingMode.URL)
to me seems like a better answer, in reading through the JavaDoc for ServletContext, this method will list what is currently in effect and not just the defaults. So IF prior to this method call there was
servletContext.setSessionTrackingModes(...) call then getEffective... would be better than getDefault...
I'm I wrong in my understanding?