java - Manually reset session timeout (keep alive) in a spring web application -


Is it possible to manually reset the expiration interval of a specific session to a user who is currently present in my web Login to the app?

I would like the ability to do something to do this:

  Eliveful User ID (long user id) {session session = this.userSessionManager.getUserSessionById (userID); Session.resetTimeOut (); }  

PS - Keep in mind that this function is not being called in the follow up by user request (i.e. it is called a cron job, a scheduled task etc.)

Thank you!

Comments