webix.storage.cookie

Hi,
I have one login page ,once I login it will redirect to another page.My requirement is once server stops ,next time when the server starts second page should not load, instead the login page should load on refresh. Please suggest some solution for this with code snippet ASAP.

Sorry, but I don’t see how it related to the Webix functionality

yeah.See I am using webix.storage.cookie.put() method on logout.So my doubt is like on server down how can I use webix.storage.cookie.put() method so that the session values I can delete.So my doubt is like , as onload we are using webix-ready=“loadData(root)” how can I use on server down.

Sorry but I still not sure that this is related to Webix.

The cookie API is only way to store extra data it is doesn’t provide any way to control page loading. Also webix-ready is a handler which will fire when component is initialized. I don’t see how it can be used in the above scenario.

ok thanks.Will get back to you if any webix related doubt comes.