Rev 566 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 566 | Rev 567 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | 19 | ||
20 | if (!defined('INSIDE_OIDPLUS')) die(); |
20 | if (!defined('INSIDE_OIDPLUS')) die(); |
21 | 21 | ||
22 | class OIDplusAuthContentStoreSession extends OIDplusAuthContentStore { |
22 | class OIDplusAuthContentStoreSession extends OIDplusAuthContentStore { |
23 | 23 | ||
- | 24 | protected function getSessionHandler() { |
|
- | 25 | static $sesHandler = null; |
|
- | 26 | if (is_null($sesHandler)) { |
|
- | 27 | $sesHandler = new OIDplusSessionHandler(); |
|
- | 28 | } |
|
- | 29 | return $sesHandler; |
|
- | 30 | } |
|
- | 31 | ||
24 | // Override abstract functions |
32 | // Override abstract functions |
25 | 33 | ||
26 | public function getValue($name) { |
34 | protected function getValue($name) { |
27 | $ses = OIDplus::sesHandler(); |
- | |
28 | return $ses->getValue($name); |
35 | return $this->getSessionHandler()->getValue($name); |
29 | } |
36 | } |
30 | 37 | ||
31 | public function setValue($name, $value) { |
38 | protected function setValue($name, $value) { |
32 | $ses = OIDplus::sesHandler(); |
- | |
33 | return $ses->setValue($name, $value); |
39 | return $this->getSessionHandler()->setValue($name, $value); |
34 | } |
40 | } |
35 | 41 | ||
36 | protected function destroySession() { |
42 | protected function destroySession() { |
37 | $ses = OIDplus::sesHandler(); |
- | |
38 | return $ses->destroySession(); |
43 | return $this->getSessionHandler()->destroySession(); |
39 | } |
44 | } |
40 | 45 | ||
41 | } |
46 | } |
42 | 47 |