Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are cookies really unique by server?

Status
Not open for further replies.

BluByU

IS-IT--Management
Jul 29, 2003
35
US
I have a VB 6.0 app that is writing a cookie to the C:\Documents and Settings\UserID\Cookies directory. The cookie I am writing is recognized by the web application that I launch from a VB form which has an IE window on it.

However, if my application is run on another PC and the cookie is written out to the proper cookie directory, the web application ignores the cookie. I read on MSDN that cookies written to a PC from a server can only be read by that server. Is this really true, or is there a work around to this limitation? Thanks in advance.
 
The server doesn't exactly read the cookie off your hard drive... rather the browser "decides" to send the cookie along with the HTTP Request to the server. The browser should only send cookies that are appropriate to the server.

What I'm trying to say is... suppose you have 2 cookies, one for xxxpron.com and another for myfamily.org... the browser should not send the cookie for xxxpron.com along with Requests to the server at myfamily.org

By the same token, the server does not write the cookie to you disk, rather it sends the cookie along with its HTTP Response and then it is up to the browser to write/manage the cookie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top