fieldset{padding:10px;}
ecshop 删除收货人信息同时删除cookie中的,联动效果
使用Ecshop有个问题,就是删除收货人信息的时候,在ecs_sessions_data中还存储有信息,所以每次都无法彻底清除,
方法:在drop_consignee方法,删除收货人信息的方法里,添加即可
同时在user.php?drop_consignee加入以下代码
? ? ? ? ? ? ?
? ? ? ? ? ? ? //同时删除cookie中的收货人地址
$consignee ;//= new array(};
$_SESSION[‘flow_consignee’] = stripslashes_deep($consignee);
elseif ($_REQUEST['step'] == 'drop_consignee'){ /*------------------------------------------------------ */ //-- 删除收货人信息 /*------------------------------------------------------ */ include_once('includes/lib_transaction.php'); $consignee_id = intval($_GET['id']); if (drop_consignee($consignee_id)) {//同时删除cookie中的收货人地址$consignee ;//= new array(};$_SESSION['flow_consignee'] = stripslashes_deep($consignee); ecs_header("Location: flow.php?step=consignee\n"); exit; } else { show_message($_LANG['not_fount_consignee']); }}
?
我提着行李,独自一人向远方走去,夕阳将我的身影拉得斜长,