Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private $token;
- private $_seesion;
- public function __construct()
- {
- $this->_seesion = new Zend_Session_Namespace('soap');
- }
- public function login($data)
- {
- $token = uniqid();
- $this->token =$token;
- $this->_seesion->token = $token;
- return $token;
- }
- public function getTocken()
- {
- $s = new stdClass();
- $s->d= 22;
- //return new SoapFault('401','Incorrect username or password');
- return $this->_seesion->token;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement