Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

AngularJS Session Manager

AngularJS module to make browser's LocalStorage act like SessionStorage.
It clears the browser localstorage when user leaves the last tab of your website.

Usage

Without prefix:

app.run(function (sessionManager) {
    sessionManager.start();
});

With prefix:

app.run(function (sessionManager) {
    sessionManager.start('example_');
});

If prfix is defined, only localStorage items with that prefix will be removed.
Otherwise, localStorage will be completely cleared.

About

AngularJS module to make browser's LocalStorage act like SessionStorage. It clears the browser localstorage when user leaves the last tab of your website.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages