For a guide to using sessions consult the session tutorial.
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']
getInstance()
Returns an instance of MK_Session_Holder
.