Forum Moderators: open

Message Too Old, No Replies

jQuery sessions

persisting across pages

         

Gibble

2:58 pm on Apr 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Personally, I find the .data() function in jQuery very useful. I can keep my html clean, and just attach data to the elements.

What I'm finding myself needing though, is a way to persist some data client side across pages.

Unfortunately, it wasn't as simple as $(window).data('key', 'value')

Aside from cookies and appending to the url, is there a way to accomplish this client side?

I couldn't find a plugin while searching yesterday that would accomplish this, and was hoping someone here had an idea.

Thanks
-c

whoisgregg

5:54 pm on Apr 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since HTTP is a stateless protocol, each different page load has no inherent connection to the prior page loads.

The only methods of persisting data from one page to another are the ones you've already pointed out. :)