Cookies in ToolBook HTML Product


The following code can be used in the first book to store the value for the UserName variable in a cookie on the learner's PC.  This information comes from an input field named UserName.

The HTTP Post is to a file called cookies1.asp.

This is that code:

Now, in the second book, we have this code:

The HTTP Post is to a file called cookies2.asp and this is the code for the second ASP page:

That's all there is to it.  Note that you also have the ability to store multiple data in a cookie so the possibilities for using this are endless provided that cookies are allowed.

Click here to see this in action.