Added cookie generation

I added the creation of the cookie.  It is not used for any checking
security stuff but it is one of the things on the test case list to
show.  I can now show that a cookie is generated on logon.