]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/auth/class_CookieAuth.php
More conventions than code added:
[shipsimu.git] / inc / classes / main / auth / class_CookieAuth.php
index 6b1bf3f0652d17328b8ac06f52190d3abc3e8d24..050cb30b07aae23cecaf0505f53993e11cd1397e 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -115,6 +115,17 @@ class CookieAuth extends BaseFrameworkSystem implements Authorizeable, Registera
                $this->getResponseInstance()->expireCookie('username');
                $this->getResponseInstance()->expireCookie('u_hash');
        }
+
+       /**
+        * Updates the authorization data and/or sets additional tracking data
+        *
+        * @param       $requestInstance        An instance of a Requestable class
+        * @return      void
+        */
+       public function updateAuthData () {
+               $this->getResponseInstance()->refreshCookie('username');
+               $this->getResponseInstance()->refreshCookie('u_hash');
+       }
 }
 
 // [EOF]