Core/Security/Token/SessionToken.php
public function generate(): string
    {
        $this->token = hash('sha256', $this->generateRandomToken());
        $this->session[$this->name] = $this->token;

        return $this->token;
    }
public function generate(): string
    {
        $this->token = hash('sha256', $this->generateRandomToken());
        $this->session[$this->name] = $this->token;

        return $this->token;
    }
public function generate ( ) : string { $ this -> token = hash ( 'sha256' , $ this -> generateRandomToken ( ) ) ; $ this -> session [ $ this -> name ] = $ this -> token ; return $ this -> token ; }
Generates a token, stores it in the set session reference and returns the token

The token gets stored in $_SESSION['Core']['Security']['session.token'] by default.

@return string
Generates a token stores it in the set session reference and returns the token