aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/security/SessionManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/security/SessionManager.php')
-rw-r--r--application/security/SessionManager.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/application/security/SessionManager.php b/application/security/SessionManager.php
index 58973130..24e25528 100644
--- a/application/security/SessionManager.php
+++ b/application/security/SessionManager.php
@@ -113,8 +113,6 @@ class SessionManager
113 */ 113 */
114 public function storeLoginInfo($clientIpId) 114 public function storeLoginInfo($clientIpId)
115 { 115 {
116 // Generate unique random number (different than phpsessionid)
117 $this->session['uid'] = sha1(uniqid('', true) . '_' . mt_rand());
118 $this->session['ip'] = $clientIpId; 116 $this->session['ip'] = $clientIpId;
119 $this->session['username'] = $this->conf->get('credentials.login'); 117 $this->session['username'] = $this->conf->get('credentials.login');
120 $this->extendTimeValidityBy(self::$SHORT_TIMEOUT); 118 $this->extendTimeValidityBy(self::$SHORT_TIMEOUT);
@@ -154,7 +152,6 @@ class SessionManager
154 public function logout() 152 public function logout()
155 { 153 {
156 if (isset($this->session)) { 154 if (isset($this->session)) {
157 unset($this->session['uid']);
158 unset($this->session['ip']); 155 unset($this->session['ip']);
159 unset($this->session['expires_on']); 156 unset($this->session['expires_on']);
160 unset($this->session['username']); 157 unset($this->session['username']);
@@ -172,9 +169,6 @@ class SessionManager
172 */ 169 */
173 public function hasSessionExpired() 170 public function hasSessionExpired()
174 { 171 {
175 if (empty($this->session['uid'])) {
176 return true;
177 }
178 if (time() >= $this->session['expires_on']) { 172 if (time() >= $this->session['expires_on']) {
179 return true; 173 return true;
180 } 174 }