in reply to Re^6: cookie problem
in thread cookie problem

i tried it as u said bt still redirect me back

Replies are listed 'Best First'.
Re^8: cookie problem
by poj (Abbot) on Nov 13, 2014 at 09:41 UTC

    Where is the username and password entered ?

      in html source

      <input type="text" name="username"/> <input type="password" name="password"/>

      and i did as u side

      my $cgi = CGI->new(); my $sid = $cgi->cookie('login'); if ( ! $sid ){ print $cgi->redirect(-uri=>"home.pl", -cookie=>$cookie); } else { print $cgi->header(-cookie=>$cookie); }
        'in html source'
        Is this html code generated by another script ?