how to log out automatically without being active for too long?
and there are updates in the background. The web application logs out and the user logs in
how to log out automatically without being active for too long?
and there are updates in the background. The web application logs out and the user logs in
scheduled task scheme:
if loginExpire <= currentTime - lastActiveTime is true{//
//do logout operations
}
caching scheme:
redis set(token, user, lastActivetime + loginExpire, timeUnit);//get&set
the front end checks whether the login status expires at regular intervals and automatically exits
encountered a project, there is a SpringBoot background, the terminal is an embedded chip, the data exchange between the two is required to be binary. Contact with this requirement for the first time, unlike the previous interaction with the mobile phone...