Something
public text v1 · immutable<?php
if($_GET['a'] && empty($_COOKIE['aid'])){
setcookie('aid',$_GET['a'],time()+60*60*24*90);
}
header('Location: http://www.mydomain.com/newpage.php');
?><?php
if($_GET['a'] && empty($_COOKIE['aid'])){
setcookie('aid',$_GET['a'],time()+60*60*24*90);
}
header('Location: http://www.mydomain.com/newpage.php');
?>