Hi , I am developing an online booking system in web2py framework.
1. I want to have the functionality where a user will be logged out after some time(say 1 hour) if the system remains idle. 2. The user will be logged out if the browser window is closed Please suggest what are the possible ways of achieving this.

