Skip to content

Commit

Permalink
fix for #79
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Oct 24, 2015
1 parent 7ebde85 commit 581981f
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 581981f

Please sign in to comment.