answered question
answers (3)
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
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: |
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.
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)
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)
Related questions
140 characters left












