Board Logo

don't remember tree state
syfodyas - 12/7/2005 at 11:05 PM

Is there a possibilty to NOT remember the tree state. Everytime I load a tree it remembers which items are (not) opened. I don't want this. I tried set the cookie to

exp.setTime(exp.getTime() + (0/*years*/ * 365/*days*/ * 24/*hours*/ * 60/*minutes*/ * 60/*seconds*/ *1000/*milliseconds*/)); //

so the actual time is set to the lifetime of the cookie, but he still remembers it. Any solutions?

Gr,


rock - 12/8/2005 at 11:37 AM

Try
exp.setTime(exp.getTime() - (1/*years*/ * 365/*days*/ * 24/*hours*/ * 60/*minutes*/ * 60/*seconds*/ *1000/*milliseconds*/)); // ~1 year ago


syfodyas - 12/8/2005 at 02:51 PM

That did the trick


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/