answered question

answers (3)

warlrus
0
Votes
BEST ANSWER  chosen by asker   |  warlrus  |  April 11, 2009 09:17 PM
A web browser does not deposit a cookie, a web-page sends a request to the browser to create one.

Every web browser has a different way of storing cookies, so theoretically you could write a program that stores information in a similar method to cookies, or simulate writing cookies into browsers such as Firefox or IE, by directly editing the cookie storage files.

Alternatively, as @pvera said, you could find an embeddable browser engine, but the cookies stored from your application would only be accessible by that particular browser. Cookies are not shared between different browsers on the same machine
Asker's rating:  

Comment
pvera
0
Votes
pvera  |  April 11, 2009 08:38 PM
In theory, yes. You can embed a web browser engine into a non-web browser application, which means that this application has access to all of the methods and properties of the web browser engine. That doesn't mean it will do it, but the capability is there.
Comment
davepamn
0
Votes
davepamn  |  April 11, 2009 11:53 PM
Visual Basic can be used to write a cookie

ASP.Net

Response.Cookies("ws_ip")=Request.ServerVariables("remote_addr")
Response.Cookies("keyword")=Request("txtSearch")
Response.Cookies("contentid")=request("contentid")

VB.NET

Dim myCookie As New HttpCookie("LoggedIn")
myCookie.Value = "True"
myCookie.Expires = DateTime.Now.AddMinutes(30)
Response.Cookies.Add(myCookie)
Comment
140

ask any question

Top of Page
Buy Mahalo Dollars
WITH CREDIT CARD OR PAYPAL

Please log in to use this function.