(Yaf >=1.0.0)
Yaf_Session::__construct — Constructor of Yaf_Session
The constructor is private: Yaf_Session implements the singleton pattern and cannot be instantiated directly. Use Yaf_Session::getInstance() to obtain the session instance.
Diese Funktion besitzt keine Parameter.
No value is returned.
Beispiel #1 Yaf_Session::__construct() example
<?php
// The constructor is private, so Yaf_Session cannot be
// instantiated with "new". Access it through the singleton:
$session = Yaf_Session::getInstance();
$session->start();
$session->set("user_id", 42);
echo $session->get("user_id");
?>