Gossamer Forum
Home : General : Perl Programming :

cookies required to be enabled

Quote Reply
cookies required to be enabled
hello:

how do detect if the surfer has cookies enabled? i've been to sites that redirect me to an erro page when my cookies aren't turned on. anybody know how to do that?

thanks in advance
Quote Reply
Re: cookies required to be enabled In reply to
Fair:

You will need to do a test to see if your visitor's browser supports cookies. Save a cookie to their computer, and then call it back.

if ($cookie) { run script; }
else { go to error page; }
Quote Reply
Re: cookies required to be enabled In reply to
yeah thx,

i did that right after i posted here. was way too easy, hehe.

thanks for the quick response Wink