codejoust/session.js — Issue #15: Utilize localStorage or sessionStorage if available.
Author: yahelc
Created: 2012-01-15 00:15:50+00:00
State: open

It'd be great if session.js to utilize localStorage (or sessionStorage) if available.

Using cookies with this much data in them can have performance implications.

After one visit, my first_session cookie was 526 bytes and location cookie was 257 bytes. That's 783 extra bytes per request. If the point is for this information to be used on the client, there's no reason to add that weight to every HTTP request. On a page with 100 requests, that's an extra 76kb of bandwidth per load.

Happy to provide a pull request if you'd like.