On 27 Oct 2008, at 21:44, Chris Dekker wrote:

> I run a website with a Google Maps on there on which I draw custom  
> tile
> images with the help of RMagick.
>
> To give a pleasant and responsive user experience I supply minimal
> position data through a cookie with the tiles and have local  
> JavaScript
> pick it up, digest it and act on it when the mouse is moved on the  
> map.
> This works great as long as the items on 1 tile remains minimal.
>
> Whenever the item data in the cookie grows over 3KB (4KB escaped) I
> split it into several cookies. Internet Explorer 7 was patched last  
> year
> to now accept 50 instead of 20 cookies per domain, yet the hardest  
> limit
> of 4KB for ALL COOKIES in the document still remains.
>
> Is there a way to make it happen that the limit of 4KB only applies  
> to a
> single cookie? Like FireFox handles it? Or do I have to resort to
> alternative measures involving an extra call to the server.

And how about instead of abusing cookies for something they weren't  
made to do, doing the following:

<div id="here-is-all-my-nifty-positional-data" style="display:none;">
    ...
</div>

• No cookie abuse (that's not what they're there for, they were made  
for persisting data across requests and site visits, not for passing  
in data)
• No 3KB data limit
• Same behavior
• In case it matters: indexable by google and other search engines


Best regards

Peter De Berdt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to