public function getSessionData($key = null, $default_value = null)
	{
		if (!$this->remember_state) {
			return $key ? $default_value : [];
		}

		return ($key ? $this->grid_session->{$key} : $this->grid_session) ?: $default_value;
	}
public function getSessionData($key = null, $default_value = null)
	{
		if (!$this->remember_state) {
			return $key ? $default_value : [];
		}

		return ($key ? $this->grid_session->{$key} : $this->grid_session) ?: $default_value;
	}
public function getSessionData ( $ key = null , $ default_value = null ) { if ( ! $ this -> remember_state ) { return $ key ? $ default_value : [ ] ; } return ( $ key ? $ this -> grid_session -> { $ key } : $ this -> grid_session ) ? : $ default_value ; }
Get session data if functionality is enabled
@param  string $key
@return mixed
Get session data if functionality is enabled