String cookieValue = '';
String cookieStr = request.getHeader('cookie');
String[] cookies = cookieStr.split(';');
for(int i=0;i<cookies.length;i++){
String cookie = cookies[i].trim();
if(cookie.startsWith('LtpaToken=')){//判断的是cookie的名称
cookieValue = cookie;
break;
}
}
String cookieStr = request.getHeader('cookie');
String[] cookies = cookieStr.split(';');
for(int i=0;i<cookies.length;i++){
String cookie = cookies[i].trim();
if(cookie.startsWith('LtpaToken=')){//判断的是cookie的名称
cookieValue = cookie;
break;
}
}