cookie保存分页参数

static private function getPageHash($url){
$path = parse_url($url);
$path = substr( $path['path'],0,4);
$path = substr( md5 ( isset($path)?$path:'action') ,0,6);
return $path;
}

原文地址:https://www.cnblogs.com/jiufen/p/4864699.html