Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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)

Replies are listed 'Best First'.
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....




Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-10-25 05:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.