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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overwriting a cookie

Status
Not open for further replies.

TonyGroves

Programmer
Aug 13, 2003
2,389
IE
I'm trying to write a HTTP header which will cause a specific cookie to be written, overwriting any of the same domain and name that already exists. I have:[tt]
Set-Cookie: login=user:password; path=/; domain=.domain.com
[/tt]
but that does not overwrite a cookie that already exists.

Can anybody help please?

Thanks a lot.

Tony.
 
I know that. What I want to do is to overwrite a cookie that I might have set previously.
 
tony

a thought: are you sure that your webserver or other server application (php/asp etc) is not sending another setcookie type statement after the one that you have sent in the above header?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top