#13 Added code to close a session and create a new one every time 10 minutes of inactivity happens