hi,

the following statment to store a string of items (variable basketlist) works fine.

document.cookie='SavedSushiBasket='+basketlist+'; expires=Friday, 31-Dec-2010 08:00:00 GMT';}

but i want this cookie to expire when the user exit the window, i.e. end the session.

so, I delete the expires statement:

document.cookie='SavedSushiBasket='+basketlist+';

But I got an error !!! why ?

can anyone help ?

graham