Couldn't you tie into the unload and beforeUnload events, and only store the data in the cookies then? That would alleviate the overhead of pushing the data across the wire with each request. You'd still have the problem of storage space, though. Your best bet in that case would be to prioritise the data, and only store the high-priority data in cookies.

On 8/09/2010 7:07 PM, אריה גלזר wrote:
The thing is like this -
ie5-7 has it's own local storage implementation (which persistJS doesn't use for some unnknown reason)
ff2-3.4 has yet another proprietary mechanism
saffari4, ff3.5+, ie8+ and chrome 5 have the w3c local storage api
saffari <4 and chrome <5 don't have anything. and I'm pertty sure this is true to many mobile phones (even webkits). so as a fallback i'm using cookies, but that can become very heavy traffic, and yet still not be large enough for some uses (such as autosave). and so i'm looking for a way to simulate storage for these browsers that can replace the cookies (i suppose flash isn't viable for many mobiles, but saffari and chrome should get some support

On Wed, Sep 8, 2010 at 12:13 PM, Rolf -nl <[email protected] <mailto:[email protected]>> wrote:

    hehe

    @arieh: sorry, I guess I didn't look good enough, I thought the list
    of supported browsers was so long it supported everything ;) what
    browsers/versions do you want to target (pre IE6?!).
    I haven't looked into storage really.. what is persistJS doing? For
    what I see it doesn't use Flash and cookies, or doesn't it support the
    browsers you're after as well?

    On Sep 8, 8:04 am, Oskar Krawczyk <[email protected]
    <mailto:[email protected]>> wrote:
    > Hence the "per-session"...
    >
    > On 2010-09-08, at 08:02, אריה גלזר wrote:
    >
    >
    >
    > > On Wed, Sep 8, 2010 at 8:37 AM, Oskar Krawczyk
    <[email protected] <mailto:[email protected]>> wrote:
    > > For per-session storage one could use window.name
    <http://window.name>.
    >
    > > again - not a storage solution - this ends when the window is
    closed....
    >
    > > --
    > > Arieh Glazer
    > > אריה גלזר
    > > 052-5348-561
    > > 5561




--
Arieh Glazer
אריה גלזר
052-5348-561
5561



--
Not sent from my Apple πPhone

Reply via email to