Mokoala v4.0

§ Session » Session

For a guide to using sessions consult the session tutorial.

Class Methods

  1. start( $namespace [, $path [, $domain]] )
  2. getInstance()

1. start( $namespace [, $path [, $domain]] )

Initializes the MK_Session abstract class and loads data from $_SESSION[$namespace]. The $path and $domain parameters contain the path and domain that cookie data will be saved against. For instance;

MK_Session::start('mk', '/', 'mattlowden.com');
$session = MK_Session::getInstance();
$session->my_value= 'some text';

Any session variables defined via the $session object will be stored to $_SESSION['mk']. For instance, in the above example the value 'some text' is stored to $_SESSION['mk']['my_value']

2. getInstance()

Returns an instance of MK_Session_Holder.

Authorizer

Cookie

Form

Form.Field

Module

Session

Utility

levitra online