You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
387 B
18 lines
387 B
<?php
|
|
namespace app\core\utils;
|
|
|
|
class Cookie {
|
|
public static function create(array $data) {
|
|
set_cookie($data);
|
|
}
|
|
|
|
public static function delete($toDelete = []) {
|
|
if(!is_array($toDelete)) {
|
|
delete_cookie($toDelete);
|
|
} else {
|
|
foreach ($toDelete as $value) {
|
|
delete_cookie($value);
|
|
}
|
|
}
|
|
}
|
|
}
|