title: How do websites generally log users out automatically when session expires?
body: <p>How do websites generally log users out and send them to the log in screen automatically when a user's session expires? Is this done through ajax or running async handlers? Can you give me a bit of an explanation.</p>