From e72327d4b1fd92675372a118052f1c9847f882dc Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 29 Nov 2014 17:18:23 -0500 Subject: Improve session handler and add Ajax session check --- app/Auth/RememberMe.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/Auth') diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php index 2585e96c..cb8a9b44 100644 --- a/app/Auth/RememberMe.php +++ b/app/Auth/RememberMe.php @@ -95,7 +95,7 @@ class RememberMe extends Base // Update the sequence $this->writeCookie( $record['token'], - $this->update($record['token'], $record['sequence']), + $this->update($record['token']), $record['expiration'] ); @@ -136,7 +136,7 @@ class RememberMe extends Base // Update the sequence $this->writeCookie( $record['token'], - $this->update($record['token'], $record['sequence']), + $this->update($record['token']), $record['expiration'] ); } @@ -237,17 +237,15 @@ class RememberMe extends Base * * @access public * @param string $token Session token - * @param string $sequence Sequence token * @return string */ - public function update($token, $sequence) + public function update($token) { $new_sequence = Security::generateToken(); $this->db ->table(self::TABLE) ->eq('token', $token) - ->eq('sequence', $sequence) ->update(array('sequence' => $new_sequence)); return $new_sequence; -- cgit v1.2.3