473,503 Members | 544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading & Creating cookies in Local Machine using Windows Application

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
3 5782
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9061
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
0
2692
by: bb | last post by:
Hello In my Session_OnStart in Global.asa, I am setting some cookies. One of them, I set as follows: dim UserID UserID = Request.ServerVariables("LOGON_USER") Response.Cookies("User")("ID")...
36
16315
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
0
1603
by: Peter D. Dunlap | last post by:
I have a number of web sites on my 2003 server, each of the independent sites (i.e., not subdirectories of the localhost site). The way I have always set these up in the past is: 1. Create a...
16
11014
by: Cheung, Jeffrey Jing-Yen | last post by:
I have a windows form application that generates a request, downloads an image, and waits the user to enter in login info. Unfortunately, this image is dynamic and based on session data. I have...
4
1651
by: Gridlock | last post by:
I'm trying to read the cookies using HttpContext.Current.Request.Cookies, but the only cookie that I get is the ASP.NET SessionId cookie. There are many cookies on the machine, why am I only...
0
3158
by: Felix | last post by:
Ok, I've had this issues since yesterday and I cannot figure out what's causing it. Basically, I have a Visual Studio 2005 Web Service. The service runs completely find on my local development...
7
5339
by: bhavin30 | last post by:
Is there a way to obtain user information (using LOGON_USER server variables) when you have set up the security to Anonymous Access? I have tried setting the security to both Anonymous + Window...
1
3072
by: pedalpete | last post by:
I'm building a facebook app, and have been following the guidelines and posting on the facebook message board, but can't seem to get anywhere. Facebook creates a session and cookie on the users...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.