Hi,
I was playing with the cookie example page and had a feeling that the cookie that’s used in that example was persistent cookie. I’m wondering if there is a way to use session cookie instead so when user logs out/closes browser, the scheduler will be loaded in its initial state next time.
Thanks a lot!
in ext/scheduler_cookie.js you can locate the next line
setCookie(“scheduler_settings”,“expires=Sun, 31 Jan 9999 22:00:00 GMT”,text);
and remove expires string
I found dhtmlxscheduler_cookie.js file under codebase/ext and the following line:
g(“scheduler_settings”,“expires=Sun, 31 Jan 9999 22:00:00 GMT”,i);
I changed “expires=…” to “”, so the api call became g(“scheduler_settings”,"",i);
The page still remembered the state when I closed the browser/scheduler last time;
Then I changed it to null, so the api call became g(“scheduler_settings”,null,i);
It still remembered the state as in previous case;
Last, I removed it from the call, I got a javascript error:
Line: 131
Error: ‘this._colsS.heights’ is null or not an object
Please discard my previous post. It was my mistake. My apology for the confusion.