
How can we set the inactivity period on a per-session basis?

We can set the session time out programmatically by using the method setMaxInactiveInterval() of HttpSession.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.