Skip to content

InterativaDigital/angular-session-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published