當前位置: 首頁>>代碼示例>>PHP>>正文


PHP es_cookie::delete方法代碼示例

本文整理匯總了PHP中es_cookie::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP es_cookie::delete方法的具體用法?PHP es_cookie::delete怎麽用?PHP es_cookie::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在es_cookie的用法示例。


在下文中一共展示了es_cookie::delete方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: loginout

 public function loginout()
 {
     $ajax = intval($_REQUEST['ajax']);
     require_once APP_ROOT_PATH . "system/libs/user.php";
     $result = loginout_user();
     if ($result['status']) {
         es_cookie::delete("email");
         es_cookie::delete("user_pwd");
         es_cookie::delete("hide_user_notify");
         if ($ajax == 1) {
             $return['status'] = 1;
             $return['info'] = "登出成功";
             $return['data'] = $result['msg'];
             $return['jump'] = get_gopreview();
             ajax_return($return);
         } else {
             $GLOBALS['tmpl']->assign('integrate_result', $result['msg']);
             if (trim(app_conf("INTEGRATE_CODE")) == '') {
                 app_redirect_preview();
             } else {
                 showSuccess("登出成功", 0, get_gopreview());
             }
         }
     } else {
         if ($ajax == 1) {
             $return['status'] = 1;
             $return['info'] = "登出成功";
             $return['jump'] = get_gopreview();
             ajax_return($return);
         } else {
             app_redirect(get_gopreview());
         }
     }
 }
開發者ID:xcdxcd,項目名稱:zhongchou,代碼行數:34,代碼來源:userModule.class.php

示例2: loginout

 public function loginout()
 {
     es_cookie::delete("sp_account_name");
     es_cookie::delete("sp_account_password");
     es_session::delete("account_info");
     app_redirect(url("biz", "index"));
 }
開發者ID:YouthAndra,項目名稱:huaitaoo2o,代碼行數:7,代碼來源:loginModule.class.php

示例3: rm

 public function rm($param)
 {
     $rel_id = intval($param['rel_id']);
     unset($param['rel_id']);
     //為默認cookie準備的參數
     unset($param['session_id']);
     unset($param['uid']);
     if ($param['type'] == "shop") {
         //商城不用城市劃分
         unset($param['city_id']);
     }
     $key = $this->build_key(__CLASS__, $param);
     es_cookie::delete($key);
     // 		$key = $this->build_key(__CLASS__,$param);
     // 		$GLOBALS['cache']->set_dir(APP_ROOT_PATH."public/runtime/data/".__CLASS__."/");
     // 		$GLOBALS['cache']->rm($key);
 }
開發者ID:macall,項目名稱:jsd,代碼行數:17,代碼來源:cache_history.auto_cache.php

示例4: showSuccess

     exit;
 }
 //判斷是否需要登陸
 if (isset($data['user_login_status']) && $data['user_login_status'] == 0 && $class != "biz_login" && $class != "app_down" && $class != "pwd" && $class != "login" && $class != 'register' && $class != 'register_verify_code') {
     //接口需要求登陸,並且未登陸時,提示用戶登陸;
     //es_session::delete("uid");
     //es_session::delete("user_email");
     //es_session::delete("user_pwd");
     if ($class == "biz_input_page") {
         es_session::delete("supplier_id");
         es_session::delete("biz_email");
         es_session::delete("biz_pwd");
         showSuccess('請先登陸!', 0, wap_url('index', 'biz_login#index'));
     } else {
         es_cookie::delete("user_name");
         es_cookie::delete("user_pwd");
         es_session::delete("user_info");
         showSuccess('請先登陸!', 0, wap_url('index', 'login#index'));
     }
 }
 //$domain = app_conf("PUBLIC_DOMAIN_ROOT")==''?get_domain().APP_ROOT:app_conf("PUBLIC_DOMAIN_ROOT");
 //echo $domain;exit;
 if (isset($data['page']) && is_array($data['page'])) {
     //感覺這個分頁有問題,查詢條件處理;分頁數10,需要與sjmpai同步,是否要將分頁處理移到sjmapi中?或換成下拉加載的方式,這樣就不要用到分頁了
     $page = new Page($data['page']['page_total'], $data['page']['page_size']);
     //初始化分頁對象
     //$page->parameter
     $p = $page->show();
     //print_r($p);exit;
     $GLOBALS['tmpl']->assign('pages', $p);
 }
開發者ID:macall,項目名稱:baikec_jsd,代碼行數:31,代碼來源:index.php

示例5: synlogout

 function synlogout($get, $post)
 {
     if (!API_SYNLOGOUT) {
         return API_RETURN_FORBIDDEN;
     }
     es_cookie::delete("user_name");
     es_cookie::delete("user_pwd");
     es_session::delete("user_info");
 }
開發者ID:YouthAndra,項目名稱:huaitaoo2o,代碼行數:9,代碼來源:uc.php

示例6: loginout

 public function loginout()
 {
     require_once APP_ROOT_PATH . "system/libs/user.php";
     $result = loginout_user();
     if ($result['status']) {
         $s_user_info = es_session::get("user_info");
         es_cookie::delete("user_name");
         es_cookie::delete("user_pwd");
         $GLOBALS['tmpl']->assign('integrate_result', $result['msg']);
         $before_loginout = $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : url("index");
         if (trim(app_conf("INTEGRATE_CODE")) == '') {
             app_redirect($before_loginout);
         } else {
             showSuccess($GLOBALS['lang']['LOGINOUT_SUCCESS'], 0, $before_loginout);
         }
     } else {
         app_redirect(url("index"));
     }
 }
開發者ID:eliu03,項目名稱:fanweP2P,代碼行數:19,代碼來源:userModule.class.php

示例7: logout

 public function logout()
 {
     require_once APP_ROOT_PATH . "system/libs/biz_user.php";
     loginout_biz();
     es_cookie::delete("account_name");
     es_cookie::delete("account_pwd");
     es_session::delete("biz_nav_list");
     es_session::delete("biz_account_auth");
     $jump = url("biz", "user#login");
     app_redirect($jump);
 }
開發者ID:macall,項目名稱:jsd,代碼行數:11,代碼來源:userModule.class.php

示例8: loginout_user

/**
 * 登出,返回 array('status'=>'',data=>'',msg=>'') msg存放整合接口返回的字符串
 */
function loginout_user()
{
    $user_info = es_session::get("user_info");
    if (!$user_info) {
        return false;
    } else {
        //載入會員整合
        $integrate_code = trim(app_conf("INTEGRATE_CODE"));
        if ($integrate_code != '') {
            $integrate_file = APP_ROOT_PATH . "system/integrate/" . $integrate_code . "_integrate.php";
            if (file_exists($integrate_file)) {
                require_once $integrate_file;
                $integrate_class = $integrate_code . "_integrate";
                $integrate_obj = new $integrate_class();
            }
        }
        if ($integrate_obj) {
            $result = $integrate_obj->logout();
        }
        if (intval($result['status']) == 0) {
            $result['status'] = 1;
        }
        $GLOBALS['msg']->manage_msg('MSG_MEMBER_REMIDE', $user_info['id'], array('type' => '會員登出', 'content' => '您的帳號  ' . $user_info['user_name'] . '  於  ' . get_client_ip() . " 登出!"));
        es_session::delete(md5("mobile_is_bind" . $user_info['id']));
        es_cookie::delete(md5("mobile_is_bind" . $user_info['id']));
        es_session::delete("user_info");
        return $result;
    }
}
開發者ID:BruceJi,項目名稱:fanwe,代碼行數:32,代碼來源:user.php

示例9: loginout

 public function loginout()
 {
     require_once APP_ROOT_PATH . "system/model/user.php";
     $result = loginout_user();
     es_cookie::delete("user_name");
     es_cookie::delete("user_pwd");
     $jump = get_gopreview();
     if ($result['msg']) {
         app_redirect($jump, 0, $result['msg']);
     } else {
         app_redirect($jump);
     }
 }
開發者ID:macall,項目名稱:jsd,代碼行數:13,代碼來源:userModule.class.php


注:本文中的es_cookie::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。