public function getIdentifier()
    {
        // Get identifier
        $identifier = $this->identifier;

        // If identifier must be obfuscated
        if (true === $this->useObfuscation()) {

            // Who is requesting (fingerprint client)
            $headers = getallheaders();

            // Get arguments
            $filter = ['USER-AGENT', 'ACCEPT', 'ACCEPT-LANGUAGE', 'ACCEPT-ENCODING'];

            foreach ($headers as $header => $value) {
                if (false === in_array(strtoupper($header), $filter)) {
                    unset($headers[$header]);
                }
            }

            $identifier = sha1(
                $identifier.
                $this->generateFingerprint(
                    $this->getClientIp(),
                    $headers
                )
            );
        }

        return $identifier;
    }
public function getIdentifier()
    {
        // Get identifier
        $identifier = $this->identifier;

        // If identifier must be obfuscated
        if (true === $this->useObfuscation()) {

            // Who is requesting (fingerprint client)
            $headers = getallheaders();

            // Get arguments
            $filter = ['USER-AGENT', 'ACCEPT', 'ACCEPT-LANGUAGE', 'ACCEPT-ENCODING'];

            foreach ($headers as $header => $value) {
                if (false === in_array(strtoupper($header), $filter)) {
                    unset($headers[$header]);
                }
            }

            $identifier = sha1(
                $identifier.
                $this->generateFingerprint(
                    $this->getClientIp(),
                    $headers
                )
            );
        }

        return $identifier;
    }
public function getIdentifier ( ) { // Get identifier $ identifier = $ this -> identifier ; // If identifier must be obfuscated if ( true === $ this -> useObfuscation ( ) ) { // Who is requesting (fingerprint client) $ headers = getallheaders ( ) ; // Get arguments $ filter = [ 'USER-AGENT' , 'ACCEPT' , 'ACCEPT-LANGUAGE' , 'ACCEPT-ENCODING' ] ; foreach ( $ headers as $ header => $ value ) { if ( false === in_array ( strtoupper ( $ header ) , $ filter ) ) { unset ( $ headers [ $ header ] ) ; } } $ identifier = sha1 ( $ identifier . $ this -> generateFingerprint ( $ this -> getClientIp ( ) , $ headers ) ) ; } return $ identifier ; }
Returns the identifier with implemented fingerprinting to ensure higher security.

@author Benjamin Carl <opensource@clickalicious.de>

@return string The identifier to return
Returns the identifier with implemented fingerprinting to ensure higher security .