public function refreshToken($tokenId) {

		$this->storage->removeToken($tokenId);

		$token = new CsrfToken(
			$tokenId,
			$this->generateValue((int) $this->tokenLength)
		);

		$this->storage->setToken($tokenId, $token);

		return $token;

	}
public function refreshToken($tokenId) {

		$this->storage->removeToken($tokenId);

		$token = new CsrfToken(
			$tokenId,
			$this->generateValue((int) $this->tokenLength)
		);

		$this->storage->setToken($tokenId, $token);

		return $token;

	}
public function refreshToken ( $ tokenId ) { $ this -> storage -> removeToken ( $ tokenId ) ; $ token = new CsrfToken ( $ tokenId , $ this -> generateValue ( ( int ) $ this -> tokenLength ) ) ; $ this -> storage -> setToken ( $ tokenId , $ token ) ; return $ token ; }
generates a new token for the given id
a new token will be generated, independent
of whether a token value previously existed or not
useful to enforce once-only tokens

@param string $tokenId
@return CsrfToken
generates a new token for the given id a new token will be generated independent of whether a token value previously existed or not useful to enforce once - only tokens