Example #1
0
 /**
  * write the existing user tokens to persistent storage
  *
  * @param integer $userId id of user to write tokens for
  *
  * @return void
  */
 protected function writeUserTokens($userId)
 {
     $key = "user/{$userId}/usercookie";
     $this->xoops->cache()->write($key, $this->userTokens, 2592000);
 }