src/Comodojo/Cookies/Cookie.php 1 location
|
@@ 41-41 (lines=1) @@
|
| 38 |
|
|
| 39 |
|
$cookie_value = $serialize === true ? serialize($value) : $value;
|
| 40 |
|
|
| 41 |
|
if ( strlen($cookie_value) > $this->max_cookie_size ) throw new CookieException("Cookie size larger than ".$this->max_cookie_size." bytes");
|
| 42 |
|
|
| 43 |
|
$this->value = $cookie_value;
|
| 44 |
|
|
src/Comodojo/Cookies/EncryptedCookie.php 1 location
|
@@ 78-78 (lines=1) @@
|
| 75 |
|
|
| 76 |
|
$cookie_value = base64_encode($cipher->encrypt($value)); |
| 77 |
|
|
| 78 |
|
if ( strlen($cookie_value) > $this->max_cookie_size ) throw new CookieException("Cookie size larger than ".$this->max_cookie_size." bytes"); |
| 79 |
|
|
| 80 |
|
$this->value = $cookie_value; |
| 81 |
|
|