RealBeginner
07-24-2002, 07:15 PM
Hi All,
I am trying to set a simple cookie when a page loads. I am a beginner and all the cookie scripts I have look at are too complicated for what I want.
I tried
onLoad="document.cookie = 'CookieName','Value' " but this does not work.
I want the cookie to last while the user is on the site and once he leaves it must be deleted.
Am I on the correct path and can anyone help?
Thanks in advance.
I am trying to set a simple cookie when a page loads. I am a beginner and all the cookie scripts I have look at are too complicated for what I want.
I tried
onLoad="document.cookie = 'CookieName','Value' " but this does not work.
I want the cookie to last while the user is on the site and once he leaves it must be deleted.
Am I on the correct path and can anyone help?
Thanks in advance.