original_string: public function touchAction($sessionId) {
  		if ($this->request->getHttpRequest()->getMethod() !== 'POST') {
  			$this->response->setStatus(405);
  			$this->response->setHeader('Allow', 'POST');
  			return;
  		}
  
  		$session = $this->sessionManager->getSession($sessionId);
  		if ($session !== NULL) {
  			$session->touch();
  
  			if ($this->ssoLogger !== NULL) {
  				$this->ssoLogger->log('Touched session "' . $sessionId . '"' , LOG_DEBUG);
  			}
  
  			$this->view->assign('value', array('success' => TRUE));
  		} else {
  			$this->response->setStatus(404);
  
  			$this->view->assign('value', array('error' => 'SessionNotFound'));
  		}
  	}
code: public function touchAction($sessionId) {
  		if ($this->request->getHttpRequest()->getMethod() !== 'POST') {
  			$this->response->setStatus(405);
  			$this->response->setHeader('Allow', 'POST');
  			return;
  		}
  
  		$session = $this->sessionManager->getSession($sessionId);
  		if ($session !== NULL) {
  			$session->touch();
  
  			if ($this->ssoLogger !== NULL) {
  				$this->ssoLogger->log('Touched session "' . $sessionId . '"' , LOG_DEBUG);
  			}
  
  			$this->view->assign('value', array('success' => TRUE));
  		} else {
  			$this->response->setStatus(404);
  
  			$this->view->assign('value', array('error' => 'SessionNotFound'));
  		}
  	}
code_tokens: public function touchAction ( $ sessionId ) { if ( $ this -> request -> getHttpRequest ( ) -> getMethod ( ) !== 'POST' ) { $ this -> response -> setStatus ( 405 ) ; $ this -> response -> setHeader ( 'Allow' , 'POST' ) ; return ; } $ session = $ this -> sessionManager -> getSession ( $ sessionId ) ; if ( $ session !== NULL ) { $ session -> touch ( ) ; if ( $ this -> ssoLogger !== NULL ) { $ this -> ssoLogger -> log ( 'Touched session "' . $ sessionId . '"' , LOG_DEBUG ) ; } $ this -> view -> assign ( 'value' , array ( 'success' => TRUE ) ) ; } else { $ this -> response -> setStatus ( 404 ) ; $ this -> view -> assign ( 'value' , array ( 'error' => 'SessionNotFound' ) ) ; } }
docstring: Touch a session to refresh the last active timestamp
  
  POST /sso/session/xyz-123/touch
  
  @param string $sessionId The session id
docstring_tokens: Touch a session to refresh the last active timestamp