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'));
		}
	}
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'));
		}
	}
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' ) ) ; } }
Touch a session to refresh the last active timestamp

POST /sso/session/xyz-123/touch

@param string $sessionId The session id
Touch a session to refresh the last active timestamp