Beispiel #1
0
 /** Social network initialization */
 public function init(array $params = array())
 {
     // Try to load token from session
     if (isset($_SESSION[self::SESSION_PREFIX . '_' . $this->id])) {
         $this->token = $_SESSION[self::SESSION_PREFIX . '_' . $this->id];
     }
     parent::init($params);
 }
Beispiel #2
0
 /** Initiate deauthorization process */
 public function deauthorize()
 {
     //Unset cookies with auth data
     setcookie('_cookie_md5Email', "");
     setcookie('_cookie_md5Password', "");
     parent::deauthorize();
 }