PHP Classes

File: doc/Classes/Cookie.md

Recommend this page to a friend!
  Classes of Scott Arciszewski   Halite   doc/Classes/Cookie.md   Download  
File: doc/Classes/Cookie.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Halite
Perform cryptography operations with libsodium
Author: By
Last change:
Date: 8 years ago
Size: 682 bytes
 

Contents

Class file image Download

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.