(Yaf >=1.0.0)
Yaf_Session is a namespaced wrapper around PHP's native session support. It is accessed as a singleton through Yaf_Session::getInstance() and works directly on $_SESSION: session data written through one interface is visible in the other.
$_SESSION
Session entries can be accessed and manipulated through property syntax, method calls (Yaf_Session::get(), Yaf_Session::set(), Yaf_Session::del(), Yaf_Session::has()), array access (ArrayAccess), iteration (Iterator) and count().
ArrayAccess
Iterator
count()
$name
$value