Ip\Application::getSecurityToken PHP Method

getSecurityToken() public method

Get security token used to prevent cross site scripting attacks
public getSecurityToken ( ) : string
return string security token
    public function getSecurityToken()
    {
        if (empty($_SESSION['ipSecurityToken'])) {
            $_SESSION['ipSecurityToken'] = md5(uniqid(rand(), true));
        }
        return $_SESSION['ipSecurityToken'];
    }