jquery.session

Provides a simple interface into window.sessionStorage while providing limited support for cross protocol requests.

Usage no npm install needed!

<script type="module">
  import jquerySession from 'https://cdn.skypack.dev/jquery.session';
</script>

README

JQuery Session Plugin

Provides a simple interface into window.sessionStorage while providing limited support for cross protocol requests.

Usage

$.session.set('some key', 'a value');

$.session.get('some key');
> "a value"

$.session.clear();

$.session.get('some key');
> undefined

$.session.set('some key', 'a value').get('some key');
> "a value"

$.session.remove('some key');

$.session.get('some key');
> undefined