>>>>> "Sara" == Sara <[EMAIL PROTECTED]> writes:
Sara> IF the cookie already exists the script reads the value Sara> perfectly, but if cookie doesn't exist or I mean for the first Sara> time visitor, it gives error: "Can't call method "value" on an Sara> undefined value" Ahh, the classic cookie misunderstanding. You can't *read* a cookie that hasn't been sent to you by a browser yet. And the browser isn't going to send you a cookie until the *second* hit, because the cookie is being set in the *first* hit. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>