public function throwDecoys()
    {
        $params = session_get_cookie_params();
        $len = strlen(session_id());
        foreach ($this->decoys as $decoy) {
            $value = Cryptography::randomString($len);
            setcookie(
                $decoy,
                $value,
                $params['lifetime'],
                $params['path'],
                $params['domain'],
                $params['secure'],
                $params['httponly']
            );
            $_COOKIE[$decoy] = $value;
        }
    }
public function throwDecoys()
    {
        $params = session_get_cookie_params();
        $len = strlen(session_id());
        foreach ($this->decoys as $decoy) {
            $value = Cryptography::randomString($len);
            setcookie(
                $decoy,
                $value,
                $params['lifetime'],
                $params['path'],
                $params['domain'],
                $params['secure'],
                $params['httponly']
            );
            $_COOKIE[$decoy] = $value;
        }
    }
public function throwDecoys ( ) { $ params = session_get_cookie_params ( ) ; $ len = strlen ( session_id ( ) ) ; foreach ( $ this -> decoys as $ decoy ) { $ value = Cryptography :: randomString ( $ len ) ; setcookie ( $ decoy , $ value , $ params [ 'lifetime' ] , $ params [ 'path' ] , $ params [ 'domain' ] , $ params [ 'secure' ] , $ params [ 'httponly' ] ) ; $ _COOKIE [ $ decoy ] = $ value ; } }
Throw decoy cookies at session start which are configured exactly as the
session cookie. This doesn't contribute in pure security measures, but
contribute in hiding server footprints and add a little more confusion
to the overall communication.
Throw decoy cookies at session start which are configured exactly as the session cookie . This doesn t contribute in pure security measures but contribute in hiding server footprints and add a little more confusion to the overall communication .