天涯自动登录的问题,有玩过天涯自动登录的大侠帮忙
写了一个天涯登录的程序,现在登录有点问题,天涯登录有点奇怪,登录之后的cookie在jsp页面里面实现:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://passport.tianya.cn:80/" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>登录中......</title>
<script>
document.cookie='user=w=testtest&id=121212121&f=1;expires='+(new Date(new Date().getTime()+2592000*1000)).toGMTString()+';path=/;domain=tianya.cn';
document.cookie='temp=k=250364072&s=&t=1318418231&b=8a895b6e0eb48e13abdf0758a9caa672&ct='+parseInt(new Date().getTime()/1000)+'&et='+(parseInt(new Date().getTime()/1000)+2592000)+';expires='+(new Date(new Date().getTime()+2592000*1000)).toGMTString()+';path=/;domain=tianya.cn';
document.cookie='sso=r=1386759670&sid=&wsid=E4827F21A852121F07D1EF264EFF553D;expires='+(new Date(new Date().getTime()+2592000*1000)).toGMTString()+';path=/;domain=tianya.cn';
document.cookie='right=web4=n&portal=n;expires='+(new Date(new Date().getTime()+2592000*1000)).toGMTString()+';path=/;domain=tianya.cn';
document.cookie='temp4=rm=5a9eba45e6cb8b51e5cbe465a456f187;expires='+(new Date(new Date().getTime()+2592000*1000)).toGMTString()+';path=/;domain=tianya.cn';
</script>
<script type="text/javascript" src="http://passport.tianyaclub.com/domain.jsp?cookieTime=1318418231&portalValue=&rightCookie=false&rmCookieCode=5a9eba45e6cb8b51e5cbe465a456f187&isActivatedUser=&idWriter=121212121&writer=testtest&intKey=250364072&chvSysGradeList=&sysGrade=&domain=tianyaclub.com&flag=72e1c5d077295b13bc2f7ddd642fde36&rmCode=true&rmFlag=1&wsid=E4827F21A852121F07D1EF264EFF553D&r=1386759670"></script>
<script type="text/javascript" src="http://passport.hainan.net/domain.jsp?cookieTime=1318418231&portalValue=&rightCookie=false&rmCookieCode=5a9eba45e6cb8b51e5cbe465a456f187&isActivatedUser=&idWriter=121212121&writer=testtest&intKey=250364072&chvSysGradeList=&sysGrade=&domain=hainan.net&flag=72e1c5d077295b13bc2f7ddd642fde36&rmCode=true&rmFlag=1&wsid=E4827F21A852121F07D1EF264EFF553D&r=1386759670"></script>
<script type="text/javascript" src="http://passport.hiholiday.com/domain.jsp?cookieTime=1318418231&portalValue=&rightCookie=false&rmCookieCode=5a9eba45e6cb8b51e5cbe465a456f187&isActivatedUser=&idWriter=121212121&writer=testtest&intKey=250364072&chvSysGradeList=&sysGrade=&domain=hiholiday.com&flag=72e1c5d077295b13bc2f7ddd642fde36&rmCode=true&rmFlag=1&wsid=E4827F21A852121F07D1EF264EFF553D&r=1386759670"></script>
</head>
<body>
<script>
location.href="http://my.tianya.cn";
</script>
</body>
</html>
类似上面的地方,按说应该是登录成功了
但是我一访问http://my.tianya.cn,就是未登录状态
请教各位大侠,如何处理?