Storing client IP Address in a Cookie using Perl

Discussion in 'Perl Misc' started by ianv2@aol.com, Jul 25, 2005.

  1. Guest

    Hi

    How can i set a client cookie in perl that will store the users IP
    address ??
    , Jul 25, 2005
    #1
    1. Advertising

  2. Paul Lalli Guest

    Paul Lalli, Jul 25, 2005
    #2
    1. Advertising

  3. wrote:
    > How can i set a client cookie in perl that will store the users IP
    > address ??


    print "Set-cookie: userip=$ENV{REMOTE_ADDR}\n";

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
    Gunnar Hjalmarsson, Jul 25, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Maziar Aflatoun

    Storing an ArrayList in a cookie

    Maziar Aflatoun, May 24, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    550
    Peter Rilling
    May 24, 2004
  2. toton
    Replies:
    11
    Views:
    695
    toton
    Oct 13, 2006
  3. Jonathan Wood
    Replies:
    1
    Views:
    498
    Jonathan Wood
    Jun 2, 2008
  4. Replies:
    2
    Views:
    460
  5. Paul  Wolpe
    Replies:
    0
    Views:
    154
    Paul Wolpe
    Oct 17, 2005
Loading...

Share This Page