Reputation: 231
I'm looking at writing my first WPF application. Before I begin, I was wondering if it is possible to manipulate an existing browser cookie.
I need to check if a specific cookie exists (I have the cookie name). If it does exist, I want to modify it's value.
I would appreciate any input.
Upvotes: 1
Views: 1660
Reputation: 3
To Set a Cookie:
Uri u = new Uri(@"C:\Paths");
Application.SetCookie(u, file.FileName);
To Get the Value stored in the Cookie: Uri u = new Uri(@"C:\Paths"); string value = Application.GetCookie(u);
Upvotes: 1