The session automatically terminates if the agent is inactive for 10 minutes. The session also terminates after the user is offline for around 20 seconds (i.e. if they leave the website or close the tab).