Reading & Creating cookies in Local Machine using Windows Application

R

ramesh.nrk

Hi,


Is there any way to read the cookies which are in local machine?
Can we create cookies using windows Application in the local
machine?

I am developing a windows application which needs to Read the
available cookies in the Local Machine, and it has to create cookies
in the Local Machine.


Thanks

Ramesh
 
N

Nicholas Paldino [.NET/C# MVP]

Ramesh,

Which web browser are you doing this for? Firefox, Netscape, Opera, and
IE all store cookies in different locations. What you do is going to be
dependent on the browser you are targeting.

If you are targeting IE, then you are going to have to use the cookie
functions in the WinInet library (InternetGetCookie, specifically) through
the P/Invoke layer.
 
R

ramesh.nrk

Ramesh,

Which web browser are you doing this for? Firefox, Netscape, Opera, and
IE all store cookies in different locations. What you do is going to be
dependent on the browser you are targeting.

If you are targeting IE, then you are going to have to use the cookie
functions in the WinInet library (InternetGetCookie, specifically) through
the P/Invoke layer.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Is there any way to read the cookies which are in local machine?
Can we create cookies using windows Application in the local
machine?
I am developing a windows application which needs to Read the
available cookies in the Local Machine, and it has to create cookies
in the Local Machine.

Ramesh

HI Nicholas,

For me there should not be browser dependency, I may use IE /
FireFox / Netscape / Opera and whatever cookie I am writting that
should be available for access to all browsers.

Thanks
Ramesh
 
P

Peter Duniho

For me there should not be browser dependency, I may use IE /
FireFox / Netscape / Opera and whatever cookie I am writting that
should be available for access to all browsers.

Then you will have to implement code that takes into account the
strategies used by each of the browsers you intend to support.

Along with a variety of other things (password lists, cached web content,
bookmarks, etc.) how a browser stores cookies and/or makes them accessible
to third-party applications is up to each browser. There's no standard,
and so you cannot expect to write general-purpose code that supports all
browsers.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top