\NZPostApiSession
Synopsis
class NZPostApiSession
{
- // constants
- const SESSION = 'nz_post_address';
- // members
- private static float $default_expiry = 0.03125;
- private static string $encryption_key = 'ea9f854a0055bd6fa0286013edfea71c4b2f3bcf48d6038ff992bff21bad7749';
- // methods
- public string encrypt()
- public string decrypt()
- public void getCookie()
- public void setCookie()
- public Mixed getValue()
- public void setValue()
- public String getToken()
- public String setToken()
Constants
Name | Value |
---|---|
SESSION | 'nz_post_address' |
Members
private
- $default_expiry — float
- $encryption_key — string
Methods
public
- decrypt() — encrypt the cookie data Note it will json encode the data first.
- encrypt() — encrypt the cookie data Note it will json encode the data first.
- getCookie()
- getToken() — Get the bearer token from the cookie
- getValue() — get a specific value from the cookie given a key
- setCookie()
- setToken() — Set the bearer token in the cookie
- setValue() — set a value in the cookie given a key and value