Justin
05-03-2003, 05:56 AM
i am haveing truble telling the brouser when it makes a cookie to have it put it on another page/ let the other page access it
HELP
HELP
|
Click to See Complete Forum and Search --> : cookie help Justin 05-03-2003, 05:56 AM i am haveing truble telling the brouser when it makes a cookie to have it put it on another page/ let the other page access it HELP Justin 05-05-2003, 02:32 PM where you you put it in this code.\/ var test="hi there this is an example"; window.document.cookie = test Jona 05-05-2003, 02:40 PM Justin, that code works but only while that browser window is open. What you are using is called "session" cookies, and you can only use this cookie one time. Then it is deleted. You have to set the expiration date for the cookie for it to stay on the computer. Anyways, here is (as Dave pointed out) the way to set the path parameter: var test="hi there this is an example; path=/"; document.cookie = test Jona 05-08-2003, 06:13 PM Originally posted by Dave Clark var test = "hi there this is an example"; window.document.cookie = "test=" & test; Dave, you gettin' confused with ASP? test=" + test; not &. & is used in ASP. ;) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |