使用Zend AuthService和Android应用程序存储

时间:2013-11-28 10:53:44

标签: android zend-framework2 httpurlconnection

我有一个网站使用zend框架服务器端,网站运行完美。我想使用此服务器创建一个Android应用程序。我的问题在于authservice存储(这段代码在服务器上并由我的app调用:

...
if ($authResult->isValid()) {
    $identity = $authResult->getIdentity();
    $authService->getStorage()->write($identity);
    ...

然后当我想用(在控制器中)读取存储时:

$user = $this->identity()

或:

$authService->getStorage()->read();

每次结果都是null ......

调用服务器我在我的应用程序中使用HttpURLConnection和cookie管理器。

有任何疑问是什么问题?

0 个答案:

没有答案