本文整理汇总了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());
}
}
}
示例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"));
}
示例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);
}
示例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);
}
示例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");
}
示例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"));
}
}
示例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);
}
示例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;
}
}
示例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);
}
}