Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 682 Bytes

Cookie.md

File metadata and controls

31 lines (16 loc) · 682 Bytes

Cookie

Namespace: \ParagonIE\Halite

Encrypted cookie storage, powered by our symmetric-key cryptography.

Properties

protected $key

Stores the encryption key for this instance of Cookie.

Methods

Constructor

Arguments:

fetch()

public fetch(string $name)

Fetch the data stored in an encrypted cookie.

store()

public store(string $name, mixed $value, int $expire = 0, string $path = '/', string $domain = null, boolean $secure = true, boolean $httponly = true)

Encrypt then store a cookie.