leonidassavvides
03-18-2008, 03:49 PM
http://www.paphoscarhire.com/index.php?aff=338297
I set in hp above the
<?php
session_start( );
// if (!isset($_SESSION['affiliate']) || $_SESSION['affiliate'] == Null) $affiliate = '10000'; //default value: $affiliate = '10000'; //default value
if (isset($_COOKIE['aff']) && ($_COOKIE['aff'] != Null))
{
$affiliate = $_COOKIE['aff'];
}
else if (isset($_GET['aff']) && ($_GET['aff'] != Null)) {
$affiliate = $_GET['aff']; // $affiliate = "{$_GET['aff']}";
setcookie("aff", $affiliate, time()+60*60*24*90, "/"); // 3 months // $_COOKIE['aff'] = $affiliate ;
}
else {
$affiliate = '10000' ;
setcookie("aff", $affiliate, time()+60*60*24*90, "/");
}
$_SESSION['affiliate'] = $affiliate ;
?>
but after I call to a webpage in the application[booking form https://pafoscarhire.com/php/booknow-euro.php ], the
<?php
$affil = $_COOKIE['aff'];
echo $affil; // $_COOKIE['aff']; // $email_text;
?>
I do not get a value for
$_COOKIE['aff'];
how to test what value this var has ? how to debug ? the https:// page can echo cookie vars ? may have $_COOKIE['aff']="" ?
I set in hp above the
<?php
session_start( );
// if (!isset($_SESSION['affiliate']) || $_SESSION['affiliate'] == Null) $affiliate = '10000'; //default value: $affiliate = '10000'; //default value
if (isset($_COOKIE['aff']) && ($_COOKIE['aff'] != Null))
{
$affiliate = $_COOKIE['aff'];
}
else if (isset($_GET['aff']) && ($_GET['aff'] != Null)) {
$affiliate = $_GET['aff']; // $affiliate = "{$_GET['aff']}";
setcookie("aff", $affiliate, time()+60*60*24*90, "/"); // 3 months // $_COOKIE['aff'] = $affiliate ;
}
else {
$affiliate = '10000' ;
setcookie("aff", $affiliate, time()+60*60*24*90, "/");
}
$_SESSION['affiliate'] = $affiliate ;
?>
but after I call to a webpage in the application[booking form https://pafoscarhire.com/php/booknow-euro.php ], the
<?php
$affil = $_COOKIE['aff'];
echo $affil; // $_COOKIE['aff']; // $email_text;
?>
I do not get a value for
$_COOKIE['aff'];
how to test what value this var has ? how to debug ? the https:// page can echo cookie vars ? may have $_COOKIE['aff']="" ?