- var_dump: documentation ( source)
- chr: documentation ( source)
- time: documentation ( source)
- base64_encode: documentation ( source)
- setrawcookie: documentation ( source)
<?php
var_dump($_COOKIE['TEST']);
$binary_string = "";
for($index = 0; $index < 256; $index++){
$binary_string .= chr($index);
}
$encoded_data = base64_encode($binary_string);
var_dump($encoded_data);
$cookie_set = setrawcookie('TEST', $encoded_data, time() + 3600);
?>