GET AFID
if(isset($_SESSION[‘afid’])){ //debug code //echo “session set”; //var_dump($_SESSION[‘afid’]); } else{ $afid=get_query_var(‘afid’); unset($_SESSION[‘afid’]); if($afid==””){$afid=”CAE-DIRECT-FORM”;} $_SESSION[‘afid’] =filter_var($afid, FILTER_SANITIZE_STRIPPED); //var_dump($_SESSION[‘afid’]); //var_dump(get_query_var(‘afid’)); } if(!isset($_SESSION[‘token’])){ // GENERATE THE TOKEN, ADD AN EXPIRY TIMESTAMP $length = 32; $_SESSION[‘token’] = substr( base_convert( sha1( uniqid( mt_rand() ) ), 16,…Continue reading