Need to setup session timeouts when the site is idle

Hi Team,

I have a request to time out the logged in user after a certain idle time , lets assume 30 mins for now. How do I make this happen and does this have any side effects?

Need to zero in on a good solution.