Cookies-best way to handle - CGI or Java???? ALso, how do I define Domain and Path

They have: 99 posts

Joined: May 1999

Firstly, should I even use Javascript for cookies or is Perl a better route? My thoughts are to read the cookie content, update a hidden field in a form and submit to server (I do need to send to the server). Problem I ran into is how to set a cookie that is available to all documents in the site (or to specific portions of my document tree).
I have checked all 5 of my Javascript books, all make mention of the path and domain attributes, but none give me an axample of how to set them (values, syntax, etc). If anyone can point me at a good example, it would be appreciated.

Thanks again!

----------
Alan Izat

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

A cookie is actually stored on an individual's computer, which is where you get it. All the pages should be able to access it, but I am not well-versed in cookies because I don't use them. There are some people here that know this though, they should be of more help. Smiling

----------
John Pollock
http://www.pageresource.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.