dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#3527 - Main menu
César Calvo
2017-03-14
f3f2452adb2723f2dde0b3429c282b835b5cdfcf
[common/securis.git]
/
securis
/
src
/
main
/
webapp
/
src
/
app
/
common
/
session.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { LocalStorageService } from 'angular-2-local-storage';
import { Injectable } from '@angular/core';
@Injectable()
export class SeCurisSession {
sessionData: any = {}
constructor(private store: LocalStorageService) {
}
public get(key: string): any {
return this.sessionData[key];
}
public exists(key: string): boolean {
return this.sessionData[key] != undefined;
}
public set(key: string, value: any): void {
this.sessionData[key] = value;
}
public remove(key: string) : void {
delete this.sessionData[key];
}
}