Here's the code I've come up with. I deliberately left off an expiration date since I want the cookie to expire when the browser is closed.
I've tried many many things but can't figure it out. I don't understand what I'm doing wrong.
Any help would be appreciated.