Project in the test process, suddenly found that after landing to visit other menus will be prompted not to log in;
After viewing the log, it is difficult to understand that a new session will be created automatically when many requests are made.
Because before also did not change what session created mechanism, Tomcat did not change, but suddenly this, and common sense does not work;
After multi-party debugging, remove Tomcat reinstall, redeploy the project, and then the same session at the request, back to normal!
Why? Why?
Search on the Internet a Good article:
1, http://m.blog.csdn.net/blog/www89404565/2070710
2, http://bbs.csdn.net/topics/380141840
3. Whether request.getsession (true) is used in your interceptor; This way gets the session
What is the session expiration time configured in Web. xml?
Put it here first, and then update the blog post if you find the problem later
Struts2 a new session will be created for each visit