Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CLASS Manager
- {
- USE tField
- {
- tField_template__get as public __get;
- tField_template__set as public __set;
- tField_Explain as public debug;
- }
- public function __construct()
- {
- $this
- ->tField_define
- (
- 'SegmentBuilder', ['ILLI\Core\Session\Segment\Builder'],
- [
- iField::PROP_INIT => new SegmentBuilder,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => TRUE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'CsrfBuilder', ['ILLI\Core\Session\Csrf\Builder'],
- [
- iField::PROP_INIT => new CsrfTokenBuilder,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => TRUE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'Csrf', ['ILLI\Core\Session\Csrf\Token'],
- [
- iField::PROP_INIT => NULL,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- if(NULL === $data[iField::CALLBACK_PROP_CONTAINS])
- {
- $token = $this->tField_get('CsrfBuilder')->createInstance($this);;
- $this->tField_set('Csrf', $token);
- $data[iField::CALLBACK_PROP_CONTAINS] = $token;
- }
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'Segments', ['ILLI\Core\Data\Collection'],
- [
- iField::PROP_INIT => new Collection,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => TRUE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'Cookie', ['ILLI\Core\Web\Data\Response\Cookie'],
- [
- iField::PROP_INIT => NULL,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- if($data[iField::CALLBACK_PROP_CONTAINS] === NULL)
- $data[iField::CALLBACK_PROP_CONTAINS] = new Cookie;
- $Cookie = $data[iField::CALLBACK_PROP_CONTAINS];
- $cookie = session_get_cookie_params();
- $Cookie->name = $this->tField_get('name');
- $Cookie->value = $this->tField_get('id');
- $Cookie->path = $cookie['path'];
- $Cookie->domain = $cookie['domain'];
- $Cookie->secure = $cookie['secure'];
- $Cookie->httpOnly = $cookie['httponly'];
- $Cookie->lifetime = $cookie['lifetime'];
- $data[iField::CALLBACK_PROP_CONTAINS] = $Cookie;
- $this->tField_set('Cookie', $Cookie);
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'isStarted', ['boolean'],
- [
- iField::PROP_INIT => session_id() !== '',
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = (session_id() !== '');
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'isActive', ['boolean'],
- [
- iField::PROP_INIT => session_status() === PHP_SESSION_ACTIVE,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = (session_status() == PHP_SESSION_ACTIVE);
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'status', ['integer'],
- [
- iField::PROP_INIT => session_status(),
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = session_status();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'id', ['string'],
- [
- iField::PROP_INIT => session_id(),
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = session_id();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'name', ['string'],
- [
- iField::PROP_INIT => NULL,
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_SET => function(array $data)
- {
- session_name($data[iField::CALLBACK_PROP_NEW]);
- $data[iField::CALLBACK_PROP_NEW] = session_name();
- $this->tField_get('Cookie')->name = $data[iField::CALLBACK_PROP_NEW];
- return $data;
- },
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = session_name();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'savePath', ['string'],
- [
- iField::PROP_INIT => session_save_path(),
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_SET => function(array $data)
- {
- session_save_path($data[iField::CALLBACK_PROP_NEW]);
- return $data;
- },
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = session_save_path();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'cacheExpire', ['integer'],
- [
- iField::PROP_INIT => session_cache_expire(),
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_SET => function(array $data)
- {
- session_cache_expire($data[iField::CALLBACK_PROP_NEW]);
- return $data;
- },
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = session_cache_expire();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'cacheLimiter', ['string'],
- [
- iField::PROP_INIT => session_cache_limiter(),
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_SET => function(array $data)
- {
- session_cache_limiter($data[iField::CALLBACK_PROP_NEW]);
- return $data;
- },
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] = session_cache_limiter();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- );
- }
- public function getSegment($name)
- {
- if(FALSE === $this->isStarted)
- $this->start();
- if(FALSE === $this->tField_get('Segments')->offsetExists($name))
- $this->tField_get('Segments')->offsetSet($name, $this->tField_get('SegmentBuilder')->createInstance($name));
- return $this->tField_get('Segments')->offsetGet($name);
- }
- public function regenerateId()
- {
- $result = session_regenerate_id(true);
- if($result)
- $this->tField_get('Csrf')->Segment->regenerateToken();
- //$this->tField_set('id', $result);
- return $result;
- }
- public function start()
- {
- return session_start();
- }
- public function clear()
- {
- return session_unset();
- }
- public function commit()
- {
- return session_write_close();
- }
- public function destroy()
- {
- $this->clear();
- return session_destroy();
- }
- }
- CLASS Segment
- {
- USE tField
- {
- tField_template__set as public __set;
- tField_template__get as public __get;
- }
- public function __construct
- (
- $__name,
- array & $__data = [],
- array & $__flash = [],
- $__created = 0,
- $__expire = 0,
- $__livetime = NULL,
- $__token = NULL
- )
- {
- $this->tField_define
- (
- 'name', ['string'],
- [
- iField::PROP_INIT => $__name,
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'Data', ['string'],
- [
- iField::PROP_INIT => new FieldReferencedCollection($__data, iCollection::OPT_FIELD_CLEAR),
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'Flash', ['string'],
- [
- iField::PROP_INIT => new FieldReferencedCollection($__flash, iCollection::OPT_FIELD_CLEAR | iCollection::OPT_FIELD_FLASH),
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'expire', ['integer'],
- [
- iField::PROP_INIT => $__expire,
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_SET => function(array $data)
- {
- $value = $data[iField::CALLBACK_PROP_NEW];
- if(FALSE === is_numeric($value))
- $value = strtotime($value);
- $value = intval($value);
- $data[iField::CALLBACK_PROP_CONTAINS] = $value;
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'time', ['integer'],
- [
- iField::PROP_INIT => time(),
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'created', ['integer'],
- [
- iField::PROP_INIT => $__created !== NULL ? $__created : time(),
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'lifetime', ['integer'],
- [
- iField::PROP_INIT => $__livetime,
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_SYNCH =>
- [
- 'expire' => function($expire)
- {
- $expire = $this->tField_get('created') + $expire;
- return $expire;
- }
- ]
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'isLiving', ['boolean'],
- [
- iField::PROP_INIT => $__expire === 0 || $__expire > time(),
- iField::PROP_PRIVATE_SET => FALSE,
- iField::PROP_PRIVATE_GET => FALSE,
- iField::PROP_ON_GET => function(array $data)
- {
- $data[iField::CALLBACK_PROP_CONTAINS] =
- $this->tField_get('expire') === 0 || $this->tField_get('expire') > time();
- return $data;
- }
- ],
- iField::DEBUG_CONTAINS
- )
- ->tField_define
- (
- 'token', ['string'],
- [
- iField::PROP_INIT => $__token !== NULL ? $__token : uniqid(mt_rand(), true),
- iField::PROP_PRIVATE_SET => TRUE,
- iField::PROP_PRIVATE_GET => FALSE
- ],
- iField::DEBUG_CONTAINS
- );
- }
- public function &toReference()
- {
- $data =& $this->tField_get('Data')->toReference();
- $flash =& $this->tField_get('Flash')->toReference();
- $result =
- [
- 'data' => &$data,
- 'flash' => &$flash,
- 'isLiving' => &self::$__tField_PropContains[$this->__tField_Hash]['isLiving'],
- 'expire' => &self::$__tField_PropContains[$this->__tField_Hash]['expire'],
- 'created' => &self::$__tField_PropContains[$this->__tField_Hash]['created'],
- 'lifetime' => &self::$__tField_PropContains[$this->__tField_Hash]['lifetime'],
- 'time' => &self::$__tField_PropContains[$this->__tField_Hash]['time'],
- 'token' => &self::$__tField_PropContains[$this->__tField_Hash]['token'],
- ];
- return $result;
- }
- public function regenerateCreated()
- {
- $this->tField_set('created', time());
- return $this;
- }
- public function clear()
- {
- $this->tField_get('Data')->clear();
- $this->tField_get('Flash')->clear();
- return $this;
- }
- }
- CLASS Builder
- {
- protected $__namespace = NULL;
- public function __construct()
- {
- $this->__namespace = get_called_class();
- }
- public function getNamespace()
- {
- return $this->__namespace;
- }
- public function createInstance($name)
- {
- $who = $this->__namespace;
- //unset($_SESSION);
- $segment = new Segment($name);
- $what =
- [
- 'data' => [],
- 'flash' => [],
- 'created' => time(),
- 'expire' => 0,
- 'isLiving' => TRUE,
- 'lifetime' => NULL,
- 'token' => NULL,
- ];
- if(FALSE === isset($_SESSION[$who]))
- $_SESSION[$who] = [];
- if(FALSE === isset($_SESSION[$who][$name]))
- {
- $_SESSION[$who][$name] = $what;
- return new Segment
- (
- $name
- );
- }
- else
- {
- $session = new Segment
- (
- $name,
- $_SESSION[$who][$name]['data'],
- $_SESSION[$who][$name]['flash'],
- $_SESSION[$who][$name]['created'],
- $_SESSION[$who][$name]['expire'],
- $_SESSION[$who][$name]['lifetime'],
- $_SESSION[$who][$name]['token']
- );
- $_SESSION[$who][$name] = & $session->toReference();
- return $session;
- }
- }
- }
- $s = new \ILLI\Core\Session\Manager;
- $s->start();
- $s->name = 'foobar';
- $s->Csrf; // init on 1st get
- $s->getSegment('User')->Data->offsetSet('run_once', 'foozzy');
- $s->getSegment('User')->lifetime = 100;
- var_dump($_SESSION);
- //$s->destroy();
- var_dump($_SESSION);
- $baz = 'lazy';
- $_SESSION['bar'] = &$baz;
- var_dump($_SESSION);
- $baz = 'lose';
- var_dump($_SESSION);
- //$s->save();
- var_dump($s);
- ?>
- array(2) {
- ["ILLI\Core\Session\Segment\Builder"]=>
- array(2) {
- ["ILLI\Session\Csrf\Token"]=>
- array(8) {
- ["data"]=>
- &array(1) {
- ["token"]=>
- string(33) "1962400955507c4a4b1bcfb8.21448942"
- }
- ["flash"]=>
- &array(0) {
- }
- ["isLiving"]=>
- &bool(true)
- ["expire"]=>
- &int(0)
- ["created"]=>
- &int(1350322761)
- ["lifetime"]=>
- &NULL
- ["time"]=>
- &int(1350323281)
- ["token"]=>
- &string(32) "821674112507c4bbeb60830.43460789"
- }
- ["User"]=>
- array(8) {
- ["data"]=>
- &array(1) {
- ["run_once"]=>
- string(6) "foozzy"
- }
- ["flash"]=>
- &array(0) {
- }
- ["isLiving"]=>
- &bool(false)
- ["expire"]=>
- &int(1350322861)
- ["created"]=>
- &int(1350322761)
- ["lifetime"]=>
- &int(100)
- ["time"]=>
- &int(1350323281)
- ["token"]=>
- &string(33) "2088807688507c4bbeb6abe2.90872036"
- }
- }
- ["bar"]=>
- string(4) "lose"
- }
- object(ILLI\Core\Session\Manager)#14 (4) {
- ["__tField":protected]=>
- array(13) {
- ["SegmentBuilder"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Session\Segment\Builder)#18 (1) {
- ["__namespace":protected]=>
- string(33) "ILLI\Core\Session\Segment\Builder"
- }
- }
- ["CsrfBuilder"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Session\Csrf\Builder)#23 (0) {
- }
- }
- ["Csrf"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Session\Csrf\Token)#72 (4) {
- ["__tField":protected]=>
- array(1) {
- ["Segment"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Session\Segment\Segment)#100 (4) {
- ["__tField":protected]=>
- array(9) {
- ["name"]=>
- array(1) {
- ["contains"]=>
- &string(23) "ILLI\Session\Csrf\Token"
- }
- ["Data"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\FieldReferencedCollection)#103 (7) {
- ["__flag":protected]=>
- int(162)
- ["__data":protected]=>
- &array(1) {
- ["token"]=>
- string(33) "1962400955507c4a4b1bcfb8.21448942"
- }
- ["__tCollectionField_flag":"ILLI\Core\Data\FieldCollection":private]=>
- int(162)
- ["__tField":protected]=>
- array(1) {
- ["token"]=>
- array(2) {
- ["contains"]=>
- &string(33) "1962400955507c4a4b1bcfb8.21448942"
- ["init"]=>
- &string(33) "1962400955507c4a4b1bcfb8.21448942"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Data\FieldCollection":private]=>
- string(32) "00000000088df5020000000039748b74"
- }
- }
- ["Flash"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\FieldReferencedCollection)#109 (7) {
- ["__flag":protected]=>
- int(226)
- ["__data":protected]=>
- &array(0) {
- }
- ["__tCollectionField_flag":"ILLI\Core\Data\FieldCollection":private]=>
- int(226)
- ["__tField":protected]=>
- array(0) {
- }
- ["__tField_LockRegistration":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Data\FieldCollection":private]=>
- NULL
- }
- }
- ["expire"]=>
- array(1) {
- ["contains"]=>
- &int(0)
- }
- ["time"]=>
- array(1) {
- ["contains"]=>
- &int(1350323281)
- }
- ["created"]=>
- array(1) {
- ["contains"]=>
- &int(1350322761)
- }
- ["lifetime"]=>
- array(1) {
- ["contains"]=>
- &NULL
- }
- ["isLiving"]=>
- array(1) {
- ["contains"]=>
- &bool(true)
- }
- ["token"]=>
- array(1) {
- ["contains"]=>
- &string(32) "821674112507c4bbeb60830.43460789"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Session\Segment\Segment":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Session\Segment\Segment":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Session\Segment\Segment":private]=>
- string(32) "00000000088df5010000000039748b74"
- }
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Session\Csrf\Token":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Session\Csrf\Token":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Session\Csrf\Token":private]=>
- string(32) "00000000088df52d0000000039748b74"
- }
- }
- ["Segments"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\Collection)#30 (1) {
- ["__data":protected]=>
- array(2) {
- ["ILLI\Session\Csrf\Token"]=>
- object(ILLI\Core\Session\Segment\Segment)#100 (4) {
- ["__tField":protected]=>
- array(9) {
- ["name"]=>
- array(1) {
- ["contains"]=>
- &string(23) "ILLI\Session\Csrf\Token"
- }
- ["Data"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\FieldReferencedCollection)#103 (7) {
- ["__flag":protected]=>
- int(162)
- ["__data":protected]=>
- &array(1) {
- ["token"]=>
- string(33) "1962400955507c4a4b1bcfb8.21448942"
- }
- ["__tCollectionField_flag":"ILLI\Core\Data\FieldCollection":private]=>
- int(162)
- ["__tField":protected]=>
- array(1) {
- ["token"]=>
- array(2) {
- ["contains"]=>
- &string(33) "1962400955507c4a4b1bcfb8.21448942"
- ["init"]=>
- &string(33) "1962400955507c4a4b1bcfb8.21448942"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Data\FieldCollection":private]=>
- string(32) "00000000088df5020000000039748b74"
- }
- }
- ["Flash"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\FieldReferencedCollection)#109 (7) {
- ["__flag":protected]=>
- int(226)
- ["__data":protected]=>
- &array(0) {
- }
- ["__tCollectionField_flag":"ILLI\Core\Data\FieldCollection":private]=>
- int(226)
- ["__tField":protected]=>
- array(0) {
- }
- ["__tField_LockRegistration":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Data\FieldCollection":private]=>
- NULL
- }
- }
- ["expire"]=>
- array(1) {
- ["contains"]=>
- &int(0)
- }
- ["time"]=>
- array(1) {
- ["contains"]=>
- &int(1350323281)
- }
- ["created"]=>
- array(1) {
- ["contains"]=>
- &int(1350322761)
- }
- ["lifetime"]=>
- array(1) {
- ["contains"]=>
- &NULL
- }
- ["isLiving"]=>
- array(1) {
- ["contains"]=>
- &bool(true)
- }
- ["token"]=>
- array(1) {
- ["contains"]=>
- &string(32) "821674112507c4bbeb60830.43460789"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Session\Segment\Segment":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Session\Segment\Segment":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Session\Segment\Segment":private]=>
- string(32) "00000000088df5010000000039748b74"
- }
- ["User"]=>
- object(ILLI\Core\Session\Segment\Segment)#148 (4) {
- ["__tField":protected]=>
- array(9) {
- ["name"]=>
- array(1) {
- ["contains"]=>
- &string(4) "User"
- }
- ["Data"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\FieldReferencedCollection)#151 (7) {
- ["__flag":protected]=>
- int(162)
- ["__data":protected]=>
- &array(1) {
- ["run_once"]=>
- string(6) "foozzy"
- }
- ["__tCollectionField_flag":"ILLI\Core\Data\FieldCollection":private]=>
- int(162)
- ["__tField":protected]=>
- array(1) {
- ["runOnce"]=>
- array(2) {
- ["contains"]=>
- &string(6) "foozzy"
- ["init"]=>
- &string(6) "foozzy"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Data\FieldCollection":private]=>
- string(32) "00000000088df5f20000000039748b74"
- }
- }
- ["Flash"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Data\FieldReferencedCollection)#157 (7) {
- ["__flag":protected]=>
- int(226)
- ["__data":protected]=>
- &array(0) {
- }
- ["__tCollectionField_flag":"ILLI\Core\Data\FieldCollection":private]=>
- int(226)
- ["__tField":protected]=>
- array(0) {
- }
- ["__tField_LockRegistration":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Data\FieldCollection":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Data\FieldCollection":private]=>
- NULL
- }
- }
- ["expire"]=>
- array(1) {
- ["contains"]=>
- &int(1350322861)
- }
- ["time"]=>
- array(1) {
- ["contains"]=>
- &int(1350323281)
- }
- ["created"]=>
- array(1) {
- ["contains"]=>
- &int(1350322761)
- }
- ["lifetime"]=>
- array(1) {
- ["contains"]=>
- &int(100)
- }
- ["isLiving"]=>
- array(1) {
- ["contains"]=>
- &bool(false)
- }
- ["token"]=>
- array(1) {
- ["contains"]=>
- &string(33) "2088807688507c4bbeb6abe2.90872036"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Session\Segment\Segment":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Session\Segment\Segment":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Session\Segment\Segment":private]=>
- string(32) "00000000088df5f10000000039748b74"
- }
- }
- }
- }
- ["Cookie"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Web\Data\Response\Cookie)#53 (4) {
- ["__tField":protected]=>
- array(8) {
- ["name"]=>
- array(1) {
- ["contains"]=>
- &string(6) "foobar"
- }
- ["value"]=>
- array(1) {
- ["contains"]=>
- &string(26) "as3lfvo965hnria54d4ps4mi31"
- }
- ["expire"]=>
- array(1) {
- ["contains"]=>
- &int(1350323281)
- }
- ["lifetime"]=>
- array(1) {
- ["contains"]=>
- &int(0)
- }
- ["path"]=>
- array(1) {
- ["contains"]=>
- &string(1) "/"
- }
- ["domain"]=>
- array(1) {
- ["contains"]=>
- &string(0) ""
- }
- ["secure"]=>
- array(1) {
- ["contains"]=>
- &bool(false)
- }
- ["httpOnly"]=>
- array(1) {
- ["contains"]=>
- &bool(false)
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Web\Data\Response\Cookie":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Web\Data\Response\Cookie":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Web\Data\Response\Cookie":private]=>
- string(32) "00000000088df5500000000039748b74"
- }
- }
- ["isStarted"]=>
- array(1) {
- ["contains"]=>
- &bool(false)
- }
- ["isActive"]=>
- array(1) {
- ["contains"]=>
- &bool(false)
- }
- ["status"]=>
- array(1) {
- ["contains"]=>
- &int(1)
- }
- ["id"]=>
- array(1) {
- ["contains"]=>
- &string(0) ""
- }
- ["name"]=>
- array(1) {
- ["contains"]=>
- &string(6) "foobar"
- }
- ["savePath"]=>
- array(1) {
- ["contains"]=>
- &string(34) "/var/www/clients/client5/web22/tmp"
- }
- ["cacheExpire"]=>
- array(1) {
- ["contains"]=>
- &int(180)
- }
- ["cacheLimiter"]=>
- array(1) {
- ["contains"]=>
- &string(7) "nocache"
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Session\Manager":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Session\Manager":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Session\Manager":private]=>
- string(32) "00000000088df56b0000000039748b74"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement