tomcat5

httprequest.getsession is returning null

白昼怎懂夜的黑 提交于 2019-12-11 03:23:58
问题 I have written one filter which would invalidate current session and create new session and copy attributes of old session into new session. This is working fine in tomcat5 and jdk 1,4 but when i switched it to tomcat6 and jdk 1.6 once the filter is running then for next request httprequest.getsession(false ) is null . Why its behaving differently in tomcat 6 . Please help. here is the code snippet public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)