Key HttpSession method

getCreationTime()   //returns the time the session was first created
getLastAccessedTime()  //returns  the last time the container got a request with this session ID
setMaxInactiveInterval()  //specifies the maximum time,in seconds,that you want to allow between client requests for this session.
getMaxInactiveInterval() //returns the maximum time,in seconds,that you want to allow between client requests for this session.
invalidate()  //ends the session.This includes unbinding all session attributes currently stored in this session.

你可能感兴趣的:(invalidate)