Class example Nov. 27, 2013, setting and using a cookie. I have chosen to set pname using php, or jname using javascript, in the two examples. I also did not set a long expiry time, since this is just an example.
This page has set the cookie jname, using Javascript.