5 Comments

  1. Iceman

    Nice tip, thanks man!

    FYI, Router::parse(‘/url/here’) may also be useful if you get the url after submission, like via PHP’s HTTP_REFERER.

  2. Hi got the same problem, but not you’re exeenlclt php skills.Where excactly should I put the session write close? 0);return $isCrawler;}if(!isBot($_SERVER[‘HTTP_USER_AGENT’]) AND $_SESSION[“over18”] != 1){ header( Location: verify.php?redirect= . $PHP_SELF);}?>

  3. If you’re using CakePHP it will handle all the session closing for you. Use CakePHP’s redirect function rather than writing a raw header yourself.

Leave a Reply

Your email address will not be published. Required fields are marked *