HTML is stateless. This means that no information about the previous sites, pages or visits is retained. But most web applications require some memory of the user's actions. Fortunately, we have ways of adding state to our applications. Two of the most common ways are cookies and sessions.