32 users online (1 members and 31 guests)  

Thread: Set-Cookie


  Results 1 to 2 of 2

Related

  1. set multiple cookie    Forum: CGI Perl Forum
    Replies: 0
  2. Set and get cookie using perl    Forum: CGI Perl Forum
    Replies: 1
  3. Perl cookie....    Forum: CGI Perl Forum
    Replies: 2
  4. cookie problem...    Forum: CGI Perl Forum
    Replies: 2
  1. #1
    little_1's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2005
    Posts
    2

    Set-Cookie

    Hello everyone,
    I have very little experience I need some help?

    if (param()) {
    if (param('cmd') eq "auth") {
    &authenticate;
    &load_type_list;
    } elsif (param('fname')) {
    $incookie = $cgi->cookie('code');
    if ($incookie eq "") {
    &load_login;
    } else {
    &do_load_links;
    }

    } elsif (param('getfile')) {
    $incookie = $cgi->cookie('code');
    if ($incookie eq "") {
    &load_login;
    } else {
    &get_file;
    }
    }
    } else {
    &load_login;
    }

    Q: If the authentication is successfull, how do i "Set-Cookie: " for this ('code') Some one help me on this?

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Set-Cookie

    look at this code:
    http://www.bewley.net/perl/cookie-test.pl

    that should answer alot



Tags for this Thread