Handling Session using jQuery


Wonderful thing and i found it after 2 days of scratching my head … 🙂

jquery.session.js http://code.google.com/p/cometdim/source/browse/trunk/src/main/webapp/jquery/jquery.session.js?spec=svn2&r=2 it requires json file too http://code.google.com/p/jquery-json/
Example:
 * USAGE
 * – To Store
 * $(function() {
 *      $.session(“myVar, “value”);
 * });
 *
 * – To Read
 * $(function() {
 *      alert( $.session(“myVar) );
 * });
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s