Figure 5.32. The cookie has persisted
If you reload the page, the cookie will be found, and you’ll get a different message,
as Figure 5.32 shows.
If you go through the code, you’ll see that it’s pretty much self-explanatory.
What’s interesting to observe is that you can close the browser window, or even
restart your computer—the cookie will still be there, and the application will be
able to identify that you’re a returning visitor. As you can see in the code, the
cookie is set to expire one month after creation.
Be aware that visitors can choose to reject your cookies, so you can’t rely on them
for essential features of your application.
Starting the Dorknozzle Project
You’re now prepared to start developing a larger project! We were introduced to
Dorknozzle at the beginning of the chapter, and you’ve already created a project
for it. Now, it’s time to add some real functionality to it! In the next few pages,
Prepare the sitemap for your site.
Create a default theme that defines the common styles.
Create a master page that will contain the layout for all the pages of
Create a web form that uses the master page.
Learn how to debug your project in case you encounter errors.
Chapter 5: Building Web Applications