-
Session Cookies (HTML)
The scenario
I have this script curtesy of http://javascriptkit.com
The script is intact Here
http://oaklanddesign.com/postit.html
Lines 49, 50, 51
//Post-it only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause postit to display every time page is loaded
var once_per_browser=0
everytime I change the value of once_per_browser=1
I get page errors
I close my browser clean my cookies out return to the page and get an error along with hidden div
Meanwhile leaving the setting at 0
No errors but I want the session cookie to work.
any ideas?
Thanks
Mike
-
Hi,
the code works much better after replacing all occurrences of document.cookie4 by document.cookie
Musicman
-