On Feb 4, 1:46 pm, "Steve Finkelstein" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was curious if anyone has ever gone the route of bench marking the
> potential of using cookies for temporary client-side persistence,
> versus using XHR + databases.
>
> I'm continuing to write an application where I need to save some very
> rudimentary information for a client for up to a 24 hour window.
> Something such as if a client has clicked a particular list item. I'm
> wondering if it's even worth putting the extra stress on the network
> and involving database overhead for this -- or if I should just use
> cookies for a faster solution. Or are they a faster solution?
>
> Again, as a simple example, I'll have a list of stuff in li objects.
> If a user clicks on one, I need to store that persistence for 24
> hours. They can also 'unclick' it by tapping again. I'm curious if
> there would be more overhead in CPU for cookie storage/retrieval
> versus XHR+database read/writes.
>
> Any opinions?
>
> Cheers,
>
> /sf

Storing it in a cookie is going to be better for this type of use.  I
did the same thing (with the exception of storing it for only 24
hours) using JS at first to store it.  In my case, since I was going
to the server anyway and I wanted to reduce the load on the client, I
went ahead and moved the cookie setting to the server.

hth,
Chris.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to