PHP Classes
elePHPant
Icontem

File: Demo/cookies_test.php

Recommend this page to a friend!
  Classes of Marco Cesarato  >  PHP AIO Security Class  >  Demo/cookies_test.php  >  Download  
File: Demo/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: Cookies encrypted prefix
Date: 1 year ago
Size: 551 bytes
 

 

Contents

Class file image Download
<?php
require_once '../security.class.php';
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>";
?>