The task that you want to perform is similar to that of using the
LocalStorage, Its not about reboot. Its about restarting the app with its
previous state. Right?

What other solution I can think of is using another variable say an exit
variable, that can be a flag set to true, when the user wants to clear the
local storage session variables before initializing the app. And by default
the flag can be set to false, so even when the app gets closed
unexpectedly, it can load the data from Local storage. I can understand you
need to change the way session Storage  works in browsers (in this case
Firefox OS), but changing that means changing the way session Storage
works, in other works, going against the specifications.

I think its an architecture related problem for the App rather than B2G.
Because, not all apps would want to store the session state.


*Prateek Jadhwani*
www.prateekjadhwani.com


On Thu, Mar 27, 2014 at 1:39 PM, Thinker K.F. Li <[email protected]>wrote:

> Prateek Jadhwani <[email protected]> writes:
>
> > How about using Local storage to store application states. I am not
> > sure if it wont kill the app to free the resources. But I would still
> > love to see the results of using local storage instead of session
> > storage.
>
> The reason to suggest using session storage here instead of local
> storage, here, is to keep the concept of sessions.  We may not like to
> keep states over reboot.  Using session storage or local storage, it
> depends on how the app like to be.  But, we could implement session
> storage in more efficent way than local storage since local storage
> should be persistent over the rebooting.
>
> --
> Sinker
> --
> 天教懶漫帶疏狂
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to