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

cookies and links

Status
Not open for further replies.

hecktic

Programmer
May 14, 2002
84
CA
Hi,

I'm using javascript and asp to set a cookie value. For some reason, this creates two cookies with the same name. All i want is to modify the same cookie.

Anyone know how to fix this?

Also, in an asp page, i'm trying to call a vbscript Sub from a hyperlink.

Something like:
<a href=javascript:alert(&quot;test&quot;); onClick='setCookie'></a>

Does anyone know the syntax to do such a thing?

Thanks a lot!
 
ok forget it.
I figured out why it was creating duplicate values.

I was setting the same cookie in two different pages. And for some reason, in one page.. the path was different; making the browser think is was two seperate cookies even if they have the same name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top