simple javascript cookie question

Giganews Newsgroups
Subject: simple javascript cookie question
Posted by:  alex.kemsley (alex.kemsl…@hottubs2buy.co.uk)
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

Alex
Hot Tubs 2 Buy.co.uk

Your help would be much apreciated.

Replies