Modify_a_Cookie_ValueK2lSL3I3WnlPOUZ3N2Vubkx0aFN1QT091 MLM Software | 1






Blog

Modify a Cookie Value

<?php
$cookie_name = "user";
$cookie_value = "Alex Porter";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/");
?>

<html>
<body>

<?php
if(!isset($_COOKIE[$cookie_name])) {
    echo "Cookie named '" . $cookie_name . "' is not set!";
else {
    echo "Cookie '" . $cookie_name . "' is set!<br>";
    echo "Value is: " . $_COOKIE[$cookie_name];
}
?>

Leave a comment


Related Posts


blog image

31 August, 2016

How to design effective teams?

Lorem ipsum dolor sit amet, consect etuer adipi scing elit, sed diam nonum my nibh euismod tincidunt.

blog image

28 August, 2016

Elevating design through training

Lorem ipsum dolor sit amet, consect etuer adipi scing elit, sed diam nonum my nibh euismod tincidunt.

© Copyright © 2008 - 2018 MLM Software Company All Rights Reserved.