Trustly/Api/unsigned.php
public function newSessionCookie() {
		$this->session_uuid = NULL;

		$request = new Trustly_Data_JSONRPCRequest('NewSessionCookie');
			/* Call parent directly here as we will attempt to detect the
			 * missing session uuid here and call this function if it is not set */
		$response = parent::call($request);

		if(isset($response)) {
			if($response->isSuccess()) {
				$this->session_uuid = $response->getResult('sessionuuid');
			}
		}
		if(!isset($this->session_uuid)) {
			throw new Trustly_AuthentificationException();
		}
		return $response;
	}
public function newSessionCookie() {
		$this->session_uuid = NULL;

		$request = new Trustly_Data_JSONRPCRequest('NewSessionCookie');
			/* Call parent directly here as we will attempt to detect the
			 * missing session uuid here and call this function if it is not set */
		$response = parent::call($request);

		if(isset($response)) {
			if($response->isSuccess()) {
				$this->session_uuid = $response->getResult('sessionuuid');
			}
		}
		if(!isset($this->session_uuid)) {
			throw new Trustly_AuthentificationException();
		}
		return $response;
	}
public function newSessionCookie ( ) { $ this -> session_uuid = NULL ; $ request = new Trustly_Data_JSONRPCRequest ( 'NewSessionCookie' ) ; /* Call parent directly here as we will attempt to detect the
			 * missing session uuid here and call this function if it is not set */ $ response = parent :: call ( $ request ) ; if ( isset ( $ response ) ) { if ( $ response -> isSuccess ( ) ) { $ this -> session_uuid = $ response -> getResult ( 'sessionuuid' ) ; } } if ( ! isset ( $ this -> session_uuid ) ) { throw new Trustly_AuthentificationException ( ) ; } return $ response ; }
Call NewSessionCookie to obtain a session cookie we can use for the rest
of our calls. This is automatically called when doing a call if we do
not have a session. Call manually if needed at session timeout etc.

@throws Trustly_AuthentificationException If the supplied credentials
cannot be used for communicating with the API.

@return Trustly_Data_JSONRPCResponse Response from the API.
Call NewSessionCookie to obtain a session cookie we can use for the rest of our calls . This is automatically called when doing a call if we do not have a session . Call manually if needed at session timeout etc .