session.setAttribute("url", "/loginjifen.action");
Cookie cookies[]=request.getCookies(); //读出用户硬盘上的Cookie,并将所有的Cookie放到一个cookie对象数组里面
Cookie sCookie=null;
String uuid="";
if(cookies != null) {
for (Cookie cookie : cookies) {
if (cookie.getName().equals("uuid")) {
uuid = cookie.getValue();
}
}
}
if (uuid == null || uuid.length() == 0) {
%>
<script type="text/javascript">
window.location.href="wo_login.jsp";
</script>
<%
}