By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,016 Members | 2,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,016 IT Pros & Developers. It's quick & easy.

Reading & Creating cookies in Local Machine using Windows Application

P: n/a
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

Jul 16 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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]
- mv*@spam.guard.caspershouse.com

<ra********@gmail.comwrote in message
news:11********************@j4g2000prf.googlegroup s.com...
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

Jul 16 '07 #2

P: n/a
On Jul 16, 7:29 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

<ramesh....@gmail.comwrote in message

news:11********************@j4g2000prf.googlegroup s.com...
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
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

Jul 17 '07 #3

P: n/a
On Mon, 16 Jul 2007 20:23:17 -0700, <ra********@gmail.comwrote:
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
Jul 17 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.