\Ingo_Session

Initialize session data for Ingo.

Summary

Methods
Properties
Constants
create()
No public properties found
No constants found
_getBackend()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create()

create() 

Create an ingo session.

Session entries:

  - backend: (array) The backend configuration to use.
  - change: (integer) The timestamp of the last time the rules were
            altered.
  - personal_share: (string) Personal share signature.
  - storage: (array) Used by Ingo_Storage for caching data.
  - script_categories: (array) The list of available categories for the
                       Ingo_Script driver in use.

Throws

\Ingo_Exception

_getBackend()

_getBackend() : array

Determine the backend to use.

This decision is based on the global 'SERVER_NAME' and 'HTTP_HOST' server variables and the contents of the 'preferred' either field in the backend's definition. The 'preferred' field may take a single value or an array of multiple values.

Throws

\Ingo_Exception

Returns

array —

The backend entry.