473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 5774
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
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
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
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
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
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
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
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
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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...
0
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...

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.