if ($_COOKIE["cookie-name"] == "your value") {
//do something
} else {
//do something else
}
if (isset($setcookie)) setcookie("TestCookie", $value, time()+3600);
if (isset($setcookie)) setcookie("VOTING", $value, time()+3600);
$value="Voting_complete";
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
opentable ('Voting');
echo "<a href='".FUSION_SELF."?setcookie'>SET COOKIE</a>";
if ($_COOKIE["VOTING"] == "Voting_complete") {
echo "smile";
} else {
echo "ot";
}
<?php
/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
$value="Voting_complete";
if (isset($setcookie)) setcookie("VOTING", $value, time()+3600);
opentable ('Voting');
echo "<a href='".FUSION_SELF."?setcookie'>SET COOKIE</a>";
if ($_COOKIE["VOTING"] == "Voting_complete") {
echo "smile";
} else {
echo "ot";
}
require_once "side_right.php";
require_once "footer.php";
?>
<?php
/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
$value="Voting_complete";
if (isset($setcookie)) setcookie("VOTING", $value, time()+3600);
if (isset($deletecookie)) setcookie("VOTING", $value, time()-3600);
opentable ('Voting');
echo "<a href='".FUSION_SELF."?setcookie'>SET COOKIE</a>";
echo "<br><a href='".FUSION_SELF."?deletecookie'>Delete COOKIE</a>";
if ($_COOKIE["VOTING"] == "Voting_complete") {
echo "smile";
} else {
echo "ot";
}
require_once "side_right.php";
require_once "footer.php";
?>
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions