Saving Data with Cookies

Most Web applications store data in a database that resides on a Web server. This allows multiple users to process and share that data. For example, a course registration application would store the list of courses and the people enrolled in those courses in a database on the Web server. However, there may be times when you want to save user-specific data on the user’s computer. Instead of a database, you can store user-specific data in cookies.