Session management is needed in web applications to maintain state across HTTP requests. Cookies and session variables are two techniques used to manage state. Session variables store data on the server tied to a unique session ID, while cookies store small amounts of data in the user's browser. Common uses of cookies and sessions include maintaining shopping carts across pages and personalizing websites based on user preferences. Cookies reduce server load by storing some data on the client side.