How to obtain and verifiy if a cookie exists, Perl

Discussion in 'Programming' started by hip_hop_x, Aug 25, 2007.

  1. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Try setting the cookie this way:

    
    setcookie("logged", $user, time()+3600*2,"/",".hidden-webs.com",0);
    
    PHP:
    There's a '.' in the front of the domain name, and the 0 parameter was added to the end.
     
    sea otter, Aug 29, 2007 IP
  2. hip_hop_x

    hip_hop_x Active Member

    Messages:
    522
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    90
    #22
    problem after problem... made the modification, but when I browse using the perl proxy, I can't view the images from website and I still get invalid error.
     
    hip_hop_x, Aug 29, 2007 IP
  3. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #23
    I'm running out of ideas :(

    I can't reproduce the problem; it works fine for me. But I'm also not using a login page. I just used a one-line php script to set the cookie, and then I load the proxy script directly.

    I wonder if there's some kind of side-effect interaction between your login page and the proxy script once you redirect to it.
     
    sea otter, Aug 30, 2007 IP
  4. hip_hop_x

    hip_hop_x Active Member

    Messages:
    522
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    90
    #24
    it might be :(, to bad I can't make it run correct.
     
    hip_hop_x, Sep 3, 2007 IP
  5. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #25
    If you'd like to PM me the login page I'd be happy to look at the code.
     
    sea otter, Sep 3, 2007 IP