in reply to Re^6: Testing for existence of cookies
in thread Testing for existence of cookies

The code you posted looks valid. You need to help others help you.

If you have access to your server logs, please post the error.

If not, add the following: use CGI::Carp 'fatalsToBrowser'; after the shebang but before any other lines in your script and post the error shown.

You should probably read Troubleshooting Perl CGI scripts as well.

Replies are listed 'Best First'.
Re^8: Testing for existence of cookies
by bigjoe11a (Novice) on Jun 27, 2005 at 00:27 UTC
    It's like I said, I'm not getting any errors. It guest won't detect the cookies if (defined($cgi->cookie('name'))) Doesn't work. I keep get 500 internal server errors, and O don't have access to server logs
      Well, it sucks that you don't have access to server logs. Makes debugging much more difficult. Have you considered another hosting company?

      Anyway, back on topic, did you try CGI::Carp? use CGI::Carp 'fatalsToBrowser'; will print headers and then print the error message that caused the script to fail (most of the time). Again, put it near the top of the script, before any other statements but after the shebang line. Try that and post the results...

        Yes, I have. its just I can't a ford it right now. The company that hosts my site is free. So I don't have to worry about it. I have a another domain that I'm looking for a free hosting site that doesn't have all these limits. if you find some thing, let me know bigjoe11a@gmail.com