When to use SESSION vs COOKIE Aug 4, 2014 A critical feature in web programming is the ability to seamlessly pass data from one page load to the next. It’s used most commonly when dealing with user logins, but also for passing error messages, shopping carts, etc. view source Advertisement