How does Rails know when to delete a record from the sessions table?
For example, if a user visits the website, a session record is created, but when the user closes the browser window, the server doesn't get any notification, so how does Rails delete records from sessions table?