dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#0 config - Migrated to jspm and Angular 4.0.2
rsanchez
2017-04-13
849f8f0acbe896cac7e531fee6895442382318cc
[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 { Locker } from 'angular-safeguard';
import { Injectable } from '@angular/core';
@Injectable()
export class SeCurisSession {
sessionData: any = {}
constructor(private store: Locker) {
}
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];
}
}