Skip to content

Core\SignedCookie

Stores a value in a cookie. The browser keeps the cookie, but cannot read or change the value. seal encrypts the value with a secret key, and open checks the cookie and returns the value again.

Members

2 members.

MemberSignature
sealseal(string $name, string $value, array<secret bytes> $keys): string
openopen(string $name, string $cookie, array<secret bytes> $keys): tainted string