Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-01-21 21:45 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (230 votes). Check out past polls.