normally, the validity time of the cookie should be the same as the destruction time of the session object.
but if it is not the same,
1. The valid time for cookie is up, and the time for session destruction is not up. At this time, the jsessionid is gone, and the server will recreate a new session,. Does the original session have to wait until the termination time is up?
2. If the valid time for cooke is not up, and the time for session destruction is up, and the server creates a new session, based on this jsessionid, then it is still logged in or not logged in, or is it login-free?
3. GetSession will automatically create a cookie, for us. If we want to set the time when cookie is valid, we can only create one by ourselves, and then response.add (cookie), won"t there be two cookie at this time
?4. If the login is exempted for seven days, and we set the cookie for seven days in the request method, then the valid time will be reset for each request. For example, if I re-request after three days, will it be set for another seven days
?