且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Servlet会话超时

更新时间:2023-12-04 19:17:10

您使用Cookie来引用您的会话ID。如果cookie的超时低于会话,则它将不再找到您的会话。因此,建议将cookie的超时设置为至少超出会话的超时时间。

You use cookies to refer to your session id. If the timeout of the cookie is lower than the session, it will not find your session anymore. So setting your timeout of your cookie to at least the timeout of your session is advisable.