473,783 Members | 2,376 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 5814
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 (InternetGetCoo kie, specifically) through
the P/Invoke layer.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<ra********@gma il.comwrote in message
news:11******** ************@j4 g2000prf.google groups.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.guar d.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 (InternetGetCoo kie, specifically) through
the P/Invoke layer.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om

<ramesh....@gma il.comwrote in message

news:11******** ************@j4 g2000prf.google groups.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********@gma il.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
9094
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 same port to change the direction of the robot. The trajectory frame is managed by an applet, and the project works good when the applet is called by a html document allocated in the same local machine under W98 where the classes and the serial port...
0
2714
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") = UCASE(UserID) When I immediately log the cookie value retrieved from
36
16419
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 path with a FSO: Set myFile = Server.CreateObject("Scripting.FileSystemObject").GetFile("\\server2\myshare\myfile.txt") this fails with an Permission Denied. here's the deal:
0
1618
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 directory "MySiteName" and a subdirectory "Site". 2. Share the "Site" subdirectory is "MySiteNameSite$", and give the local administrators group full access to the share. (The login I run under is a member of that group.)
16
11056
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 read documents on the CookieCollection property of HttpWebRequest. Currently, I have the functionality in my code to be able to accept cookies, and return them upon a new HttpWebRequest; however, upon further inspection of the returning...
4
1668
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 getting the one cookie? Thanks, - Stew
0
3183
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 environment (running WinXP, with .NET 1.1 & .NET 2.0 installed). I would normally Publish the website to another machine using the built in "Publish" in VS 2005. I publish to a file system on a remote machine running ..NET 2.0 Framework. I...
7
5357
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 Integrated, without any luck. I'm using IIS 6.0 on Windows Server 2003 Thanks in advance!
1
3090
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 machine for the facebook application. However, logging out of facebook, does not remove this session or cookie. I'm using require_once('../facebook.php'); session_start(); setcookie(session_name(), '', time()-42000, '/');
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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 we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.