Re: how to handle >4K session in camping

2013-12-06 Thread Magnus Holm
You should not store a large amount of data in the session. The session is stored in a cookie, and everything you store there has to be sent back and forth over the network. You can however store an ID in the session and lookup data in your database. // Magnus Holm On Tue, Dec 3, 2013 at 12:04 P

Re: how to handle >4K session in camping

2013-12-06 Thread Charles McKnight
Sure wish the W3C would devise a better state mechanism than cookies... On Dec 6, 2013, at 12:49 PM, Magnus Holm wrote: > You should not store a large amount of data in the session. The > session is stored in a cookie, and everything you store there has to > be sent back and forth over the netwo

Re: how to handle >4K session in camping

2013-12-06 Thread Bluebie
If you fill the session cookie with 4kb of data, that means every http request after that to that domain will require the user to upload 4kb of data, which may not seem like much, but on a mobile phone for instance, loading a page with 50 images, that becomes 4*50 = 200kb - pretty significant co