1. Christian Salazar
  2. crugeconnector

Commits

Christian Salazar  committed fe47952

FIX ISSUE #1 - CWebUser::init affects CrugeConnector stored data

  • Participants
  • Parent commits de058b6
  • Branches master

Comments (0)

Files changed (1)

File CrugeBaseClient.php

View file
  • Ignore whitespace
 		$this->data = $anyData;
 		$this->push();
 	}
+	/*
 	private function push(){
 		$s = new CHttpSession();
 		$s->open();
 		$s->close();
 		return $data;
 	}
+	*/
+
+	private function push(){
+		$_SESSION['__crugeconnector_data__'] = $this->getData();
+	}
+	public static function getStoredData() {
+		if(isset($_SESSION['__crugeconnector_data__']))
+		  return $_SESSION['__crugeconnector_data__'];
+    	return null;
+    }
+
 	public function getData(){
 		return $this->data;
 	}