Skip to content

Commit

Permalink
Merge pull request #80 from REJack/master
Browse files Browse the repository at this point in the history
fix for #79
  • Loading branch information
Emre Akay committed Oct 26, 2015
2 parents f93fb35 + 581981f commit 22f2479
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$cookie = array(
'name' => 'user',
'value' => '',
'expire' => time()-3600,
'expire' => -3600,
'path' => '/',
);
$this->CI->input->set_cookie($cookie);
Expand Down Expand Up @@ -190,7 +190,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$reCAPTCHA_cookie = array(
'name' => 'reCAPTCHA',
'value' => 'true',
'expire' => time()+7200,
'expire' => 7200,
'path' => '/',
);
$this->CI->input->set_cookie($reCAPTCHA_cookie);
Expand Down Expand Up @@ -316,7 +316,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$cookie = array(
'name' => 'user',
'value' => $row->id . "-" . $random_string,
'expire' => time() + 99*999*999,
'expire' => 99*999*999,
'path' => '/',
);

Expand All @@ -331,7 +331,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$reCAPTCHA_cookie = array(
'name' => 'reCAPTCHA',
'value' => 'false',
'expire' => time()-3600,
'expire' => -3600,
'path' => '/',
);
$this->CI->input->set_cookie($reCAPTCHA_cookie);
Expand Down Expand Up @@ -472,7 +472,7 @@ public function logout() {
$cookie = array(
'name' => 'user',
'value' => '',
'expire' => time()-3600,
'expire' => -3600,
'path' => '/',
);
$this->CI->input->set_cookie($cookie);
Expand Down

0 comments on commit 22f2479

Please sign in to comment.