Advertisement
artursn

Untitled

Jul 17th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. private $token;
  2.     private $_seesion;
  3.     public function __construct()
  4.     {
  5.         $this->_seesion = new Zend_Session_Namespace('soap');
  6.     }
  7.     public function login($data)
  8.     {
  9.         $token = uniqid();
  10.         $this->token =$token;
  11.         $this->_seesion->token = $token;
  12.         return $token;
  13.     }
  14.     public function getTocken()
  15.     {
  16.         $s = new stdClass();
  17.         $s->d= 22;
  18.         //return  new SoapFault('401','Incorrect username or password');
  19.         return $this->_seesion->token;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement