;

PDA

Click to See Complete Forum and Search --> : Session Cookies (HTML)


Frets
11-16-2002, 05:32 AM
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

Musicman
11-16-2002, 10:48 AM
Hi,

the code works much better after replacing all occurrences of document.cookie4 by document.cookie

Musicman

Frets
11-17-2002, 12:31 AM
Thanks much