This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/behat/mink/driver-testsuite/web-fixtures/issue140.php

16 lines
325 B
PHP

<?php
if (!empty($_POST)) {
setcookie("tc", $_POST['cookie_value'], null, '/');
} elseif (isset($_GET["show_value"])) {
echo $_COOKIE["tc"];
die();
}
?>
<!DOCTYPE html>
<html>
<body>
<form method="post">
<input name="cookie_value">
<input type="submit" value="Set cookie">
</form>
</body>