Zend framework Zend和jQuery Mobile中的注销问题

Zend framework Zend和jQuery Mobile中的注销问题,zend-framework,jquery-mobile,Zend Framework,Jquery Mobile,我使用的是Zend framework 1.11.3版和jQuery mobile 1.3.0 beta版。单击“注销”按钮,我将被重定向到主页面。页面不会刷新,图像也不会加载。但是,当我刷新页面时,图像会被加载。这是我的注销代码::控制器: $auth = Zend_Auth::getInstance(); $auth->clearIdentity(); $user_sessions = new Zend_Session_Namespace('user_sessi

我使用的是Zend framework 1.11.3版和jQuery mobile 1.3.0 beta版。单击“注销”按钮,我将被重定向到主页面。页面不会刷新,图像也不会加载。但是,当我刷新页面时,图像会被加载。这是我的注销代码::控制器:

    $auth = Zend_Auth::getInstance();
    $auth->clearIdentity();
    $user_sessions = new Zend_Session_Namespace('user_sessions');
    $user_sessions->user_register_id="";
    $user_sessions->user_fname="";
    $user_sessions->user_username="";
    unset($user_sessions);
    return $this->_redirect('/index');   
视图:

欢迎您

任何帮助都将不胜感激。提前谢谢。

我已经改变了我的观点,如下所示,并发现它起作用了

     <span class="ui-btn-right"  >Welcome <a href="/profile" title="profile" style="color:white;">' . $name . '</a><div id="logout">Logout</div></span>
欢迎注销
并添加了脚本

   <script>
     $( "#logout" ).on( "click", function() {
       document.location.href="/logout";

     });
   </script>

$(#注销”)。在(“单击”,函数()上{
document.location.href=“/logout”;
});

copy-paste两种情况下的图像src属性。感谢Mr Coder解决了我的问题。现在,图像已正确加载到主页,但登录功能不起作用。当我刷新页面时,它工作正常。
   <script>
     $( "#logout" ).on( "click", function() {
       document.location.href="/logout";

     });
   </script>