php8.5
Home/ Manual/ reference / yaf/ The Yaf_Session class

The Yaf_Session class

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.

Intro

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 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().

Class synopsis

class Yaf_Session { }

Properties

_instance
_session
_started

Yaf-session

Source: reference/yaf/yaf-session.xml · from the official PHP manual (php/doc-en)