当前位置: 首页>>代码示例>>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;未经允许,请勿转载。