From PHP, set-cookie, then in JavaScript, document.cookie, then in PHP, read the cookie header back after a simple redirect. This is absolutely possible, we use a mix of JavaScript / PERL (sorry, hope the word PERL does not peeve anyone here...🙂 cookies on our site. Good for knowing if JavaScript is supported on the client platform, or if the client has Flash installed, among other things.
Feel free to write me directly, I can fire you some nice examples.
Good luck.
Matthew Pirvul
eAccounts.NETwork