if (defined($cgi->cookie('admin'))) { # cookie exists # do something } else { # no cookie # so do something else }
This is untested, but you get the point....
See here for a quick example script and some explanation.
In reply to Re^3: Testing for existence of cookies
by srdst13
in thread Testing for existence of cookies
by bigjoe11a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |