simple javascript cookie question

Giganews Newsgroups
Subject: simple javascript cookie question
Posted by:  alex.kemsley (alex.kemsl…
Date: 5 Sep 2006

Hi guys,

I am trying to write a simple script in vain.
I need it to first check to see if the cookie exists
then if not
write one with two variable

var ref = document.referrer
var page = location.href

I need this cookie to last just one day.

This script is going to be used to send me this info in my formail so i
can see how people got to my website and where they entered.

Many thanks

Hot Tubs 2

Your help would be much apreciated.