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!

cookie problem

Status
Not open for further replies.

jcisco

Programmer
Sep 17, 2002
125
US
I was wondering if this is possible.
I have two web apps. the first app creates a cookie then creates a popup window and calls app2. Now what i want is APP2 to write its own cookie. But it keeps appending to the APP1 cookie. Is there a way to stop this? below is the cookie code: (both of these are located in the Page_Load evt.

'app 1 cookie code

dim cookie as new system.web.httpCookie("cookie1", "my test")
response.cookies.add(cookie)
response.write(Request.Cookies("cookie1"))

'create popUp window and write a new cookie
me.hyperLink1.Attributes.Add("OnClick", "javascript:window.open(' 'test','width=700,height=600')")


app2 cookie code

dim cookie as new system.web.httpcookie("cookie2", "hello")
response.cookies.add(cookie)
response.write(Request.cookie("cookie2"))

thanks [pc3]
--------------
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top