More work on cookies. Need to work on encrypting/decrypting cookies and sending new cookies to the client.