Site Links: Home | Store | Contact Me |
Cookie =
Cookie on Page Load =
This example demonstrates a number of features related to cookies in the Dojo base package. Highlights include:
require
statement to include dojo.cookie
.processCookies
function demonstrations how to set a cookie value using dojo.cookie
. Specify the cookie name, then a value, and finally a duration in days.load
function shows how to load a cookie using the dojo.cookie function
. Just include the cookie name as a parameter to the fuction call and the value stored in the cookie is returned.