Setting a site wide cookie

Discussion in 'JavaScript' started by tbarr60, Jul 21, 2007.

  1. #1
    I have a script that sets a cookie and checks for the cookie on each return to that page. I would like this cookie to be site wide.

    To see this in action pick one of the job titles on the following page. When the page loads an alert will display after 3 seconds and will not appear again for the job title. If you go back and pick another job title it will show the alert again but I don't want it to.

    http://www.salarymap.com/salary-survey-comparison/salary-list-2.cfm
     
    tbarr60, Jul 21, 2007 IP