- php checking cookie to set another cookie
- setcookie("Blah","user",time()+86400);
- if (isset($_COOKIE["Blah"]))
- {
- setcookie("Demo","user",time()+86400);
- }
- $url="cd/bar/home.php"
- header ("Location: $URL");
- <?php
- if (isset($_COOKIE["Demo"]))
- {
- ?>
- html
- <?php
- }
- ?>
- setcookie("Demo","user",time()+86400, '/');