]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/auth/class_CookieAuth.php
Update of last activitity and action in user added, refresh of auth cookies added
[shipsimu.git] / inc / classes / main / auth / class_CookieAuth.php
index 6b1bf3f0652d17328b8ac06f52190d3abc3e8d24..881d0d1914bc0ec738b05ae11e85d2bd539633f3 100644 (file)
@@ -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]