Skip to content

Commit

Permalink
Added to the distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeDog committed Dec 20, 2014
1 parent 0df6f55 commit 55f7219
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions html/cookie-expire.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
$key = "exes";
$sec = 15;
$str = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

if (isset($_COOKIE[$key])) {
$tmp = $_COOKIE[$key].$str;
setcookie($key, $tmp);
} else {
setcookie($key, $str, time()+$sec);
}

print "Cookie value is: ";
print $_COOKIE[$key];
print "<br />\n";

?>

0 comments on commit 55f7219

Please sign in to comment.