Help for this page

Select Code to Download


  1. or download this
    sub write_cookies{
         my ($username, $password, $regtype, $expires) = @_;
         print "Set-Cookie: reguser=$username; expires=$expires; path=/;\n
    +";
         print "Set-Cookie: regpass=$password; expires=$expires; path=/;\n
    +";
         print "Set-Cookie: regtype=$regtype; expires=$expires; path=/;\n"
    +;
     }
    
  2. or download this
    write_cookies($username, $password, $regtype, calc_cookie_expires(-1))
    +;