Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Answer: Cookie set to IP number?

by dws (Chancellor)
on Nov 30, 2001 at 22:43 UTC ( #128701=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > Cookie set to IP number? - Answer contributed by dws

Is it possible to set a cookie to an IP number instead of the usual

You might be able to set the cookie (that is, get some browser to accept and store it), but no browser that I know of will actually return it to you. Where they to do so, it would introduce a massive security hole.

Think about it for a moment. It's possible to set a cookie for "" that will be returned by a browser for visits to "", "", or "". But what of ".1.1"? That would match sites all over the place.

Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2020-09-21 09:21 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (125 votes). Check out past polls.