Skip to content

Commit

Permalink
suport HttpOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo committed Oct 26, 2022
1 parent 350ed00 commit bd5c8c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public function setValue(string $value): Cookie
public function get(): string
{
$cookie = '';

if ($this->cookie['httpOnly'] === 'TRUE') {
$this->cookie['name'] = '#HttpOnly_' . $this->cookie['name'];
}
foreach ($this->cookie as $value) {
$cookie .= $value . "\t";
}
Expand Down

0 comments on commit bd5c8c2

Please sign in to comment.