src/bundles/Session/Manager.php
public function read() 
	{
		// Do we already have a session id if not we regenerate
		// the session and assign the default data.
		if ( $this->id ) 
		{
			if ( !$this->_data = $this->_driver->read( $this->id ) ) 
			{
				$this->regenerate();
				$this->_data = array();
			}
	
			if ( !is_array( $this->_data ) ) 
			{
				$this->_data = array();
			}
			
			$this->_data = array_merge( $this->_data, $this->default_data() );
		} 
		else 
		{
			$this->regenerate();
			$this->_data = $this->default_data();
		}
	}
public function read() 
	{
		// Do we already have a session id if not we regenerate
		// the session and assign the default data.
		if ( $this->id ) 
		{
			if ( !$this->_data = $this->_driver->read( $this->id ) ) 
			{
				$this->regenerate();
				$this->_data = array();
			}
	
			if ( !is_array( $this->_data ) ) 
			{
				$this->_data = array();
			}
			
			$this->_data = array_merge( $this->_data, $this->default_data() );
		} 
		else 
		{
			$this->regenerate();
			$this->_data = $this->default_data();
		}
	}
public function read ( ) { // Do we already have a session id if not we regenerate // the session and assign the default data. if ( $ this -> id ) { if ( ! $ this -> _data = $ this -> _driver -> read ( $ this -> id ) ) { $ this -> regenerate ( ) ; $ this -> _data = array ( ) ; } if ( ! is_array ( $ this -> _data ) ) { $ this -> _data = array ( ) ; } $ this -> _data = array_merge ( $ this -> _data , $ this -> default_data ( ) ) ; } else { $ this -> regenerate ( ) ; $ this -> _data = $ this -> default_data ( ) ; } }
Read data from the session driver. This overwrite's
any changes made on runtime.

@return void
Read data from the session driver . This overwrite s any changes made on runtime .