You might expect the application to have a session with a current count of 5.
您也许期望应用程序有一个会话,它的当前计数为5。
If it is less than the maximum page request count, the new visit object is saved to the session.
如果小于最大页面请求计数,则新的visit对象被保存到会话中。
After the servlet has been requested 5 times, the session is deleted and the count starts over at 1.
在该servlet被请求5次后,会话被删除计数开始从1计起。
应用推荐