Using Network API you can control all incoming and outgoing cookies. You can enable/disable saving/sending cookies. Using the NetworkDelegate.OnCanSetCookies(String url, List<Cookie> cookies) method you can decide whether cookies should be saved or not. To disable sending some cookies to a web server you can use the NetworkDelegate.OnCanGetCookies(String url, List<Cookie> cookies) method.


Example


MainWindow.xaml

<Window x:Class="WPF.NetworkEvents.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid Name="mainLayout">
        
    </Grid>
</Window>


C#

MainWindow.xaml.cs

using System;
using System.IO;
using DotNetBrowser;
using DotNetBrowser.WPF;
using System.Windows;
using System.Collections.Generic;

namespace WPF.NetworkEvents
{
    public partial class MainWindow : Window
    {
        Browser browser;
        WPFBrowserView browserView;

        public MainWindow()
        {
            InitializeComponent();
            BrowserContext browserContext = BrowserContext.DefaultContext;
            browserContext.NetworkService.NetworkDelegate = new SampleNetworkDelegate();

            browser = BrowserFactory.Create(browserContext);
            browserView = new WPFBrowserView(browser);
            mainLayout.Children.Add(browserView);
            browserView.Browser.LoadURL("http://www.teamdev.com");
        }
    }


    class SampleNetworkDelegate : DefaultNetworkDelegate
    {
        public override bool OnCanSetCookies(String url, List<Cookie> cookies)
        {
            return false;
        }


        public override bool OnCanGetCookies(String url, List<Cookie> cookies)
        {
            return false;
        }
    }
}


VB.NET

MainWindow.xaml.vb

Imports DotNetBrowser
Imports DotNetBrowser.WPF

Namespace WPF.NetworkEvents
    Class MainWindow
        Dim browser As Browser
        Dim browserView As WPFBrowserView

        Sub New()
            InitializeComponent()
            Dim browserContext As BrowserContext = BrowserContext.DefaultContext
            browserContext.NetworkService.NetworkDelegate = New SampleNetworkDelegate()

            browser = BrowserFactory.Create(browserContext)
            browserView = new WPFBrowserView(browser)
            mainLayout.Children.Add(browserView)
            browserView.Browser.LoadURL("http://www.teamdev.com")
        End Sub
    End Class

    Friend Class SampleNetworkDelegate
        Inherits DefaultNetworkDelegate

        Public Overrides Function OnCanSetCookies(url As String, cookies As List(Of Cookie)) As Boolean
            Return False
        End Function

        Public Overrides Function OnCanGetCookies(url As String, cookies As List(Of Cookie)) As Boolean
            Return False
        End Function
    End Class
End Namespace