PHP Classes

File: tests/cookies_test.php

Recommend this page to a friend!
  Classes of Marco Cesarato   PHP AIO Security Class   tests/cookies_test.php   Download  
File: tests/cookies_test.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP AIO Security Class
Filter untrusted data to prevent security issues
Author: By
Last change: Update of tests/cookies_test.php
Date: 3 years ago
Size: 593 bytes
 

Contents

Class file image Download
<?php

require_once '../src/Security.php';
use
marcocesarato\security\Security;

Security::putInSafety();

if (!isset(
$_COOKIE['TEST'])) {
   
Security::setCookie('TEST', 'Test Message');
}

echo
'<h1>Cookies Test</h1>';
echo
"Check on your browser the real value of the cookies through a plugin as <a href='https://chrome.google.com/webstore/detail/cookie-inspector/jgbbilmfbammlbbhmmgaagdkbkepnijn'>Cookie Inspector</a> (chrome) or <a href='https://addons.mozilla.org/en-US/firefox/addon/cookies-manager-plus/'>Cookie Manager</a> (firefox)";
echo
'<pre>';
var_dump($_COOKIE);
echo
'</pre>';