Method | Description | |
---|---|---|
newInstance ( array $cookies, callable | null $delete_cookie = null ) : Session | Creates a new Session manager. |
public newInstance ( array $cookies, callable | null $delete_cookie = null ) : Session | ||
$cookies | array | An array of cookie values, typically $_COOKIE. |
$delete_cookie | callable | null | Optional: An alternative callable to invoke when deleting the session cookie. Defaults to `null`. |
return | Session | New Session manager instance |