Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Checking Cookies Support with Perl

by extremely (Priest)
on Apr 04, 2002 at 20:27 UTC ( #156758=note: print w/ replies, xml ) Need Help??


in reply to Checking Cookies Support with Perl

Short answer, you can't. People can turn off cookies in every major browser now.

If you must do cookies that way, maybe you can mark the ones that are returned and purge the ones that never get used after a short period?

Alternately, you can do a two stage cookie drop where you send them a "cookie request" cookie and then only make a long term cookie if they have that cookie. But then you have to work out a strategy for url "marking" the people who wouldn't accept the cookie and ignoring them.

--
$you = new YOU;
honk() if $you->love(perl)


Comment on Re: Checking Cookies Support with Perl
Re: Re: Checking Cookies Support with Perl
by tachyon (Chancellor) on Apr 05, 2002 at 10:29 UTC

    Of course you can check using the tried and true suck it and see approach. You send them a cookie with a data string like "Hello? Are you listening to me browser? Yeah, I'm talkin' to you Moz" and then see if you can read this back. If yes Thunderbirds are good to go, if not you cookie has evidently evaporated, condemned to float forever in the endless null void of cyberspace, perhaps one day to give sustenance to a lost and lonely, sad and hungry packet sniffer....

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://156758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2014-11-26 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (171 votes), past polls