change index.php cookie handling