Apache2::Cookie cookie parse error "Expected token not present"

This is a multi-part message in MIME format.
--------------040408020009070505060102
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit

hi

Our web site http://passport.maxthon.cn use mod_perl2.0.
but it displays "Expected token not present" on the page occasionally.

I log the cookie string in header when the error occur, the abnormal
cookie would like this:

rtime30013728=0; ltime30013728=1261566403616;
cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.c om/redir/public/avatar.htm%3Fv%3D3.0.6.4;
1;
MAXAUTH=01000000170000005F47334BDF7A144D7BAA0F4B60AB448E3E79 ECE6D111B0BE6B9A461DF1237853

rtime30013728=0; ltime30013728=1261566403616;
cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.c om/redir/public/avatar.htm%3Fv%3D3.0.6.4;
MAXAUTH=01000000170000006DA5314BEE28134D7BAA0F4BB1E42FEFD033 0EC3913F26C41ACABF9598722B7F;
1

I compared them with the normal cookie string, I find all of the
abnormal cookie string contain "1;"
It is sure that the "1;" cause the Apache2::Cookie parser error.
I wonder how and why the "1;" is added, and how to fix it.

--

*陈建春|ChenJianchun*
傲游Web应用部
E-mail: chenjch [at] maxthon.net <mailto:chenjch [at] maxthon.net>

*Maxthon^? * --每个人的互联网中心! 上网从傲游开始!
傲游天下科技有限公司(中国) <http://www.maxthon.cn/> | www.maxthon.cn
<http://www.maxthon.cn/>

*诚信、创新、务实、奋斗!*


--------------040408020009070505060102
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
hi<br>
<br>
Our web site <a class="moz-txt-link-freetext" href="http://passport.maxthon.cn">http://passport.maxthon.cn</a> use mod_perl2.0.<br>
but it displays  "Expected token not present" on the page occasionally.<br>
<br>
I log the cookie string in header when the error occur, the abnormal
cookie would like this:<br>
<br>
rtime30013728=0; ltime30013728=1261566403616;
cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.c om/redir/public/avatar.htm%3Fv%3D3.0.6.4;
1;
MAXAUTH=01000000170000005F47334BDF7A144D7BAA0F4B60AB448E3E79 ECE6D111B0BE6B9A461DF1237853<br>
<br>
rtime30013728=0; ltime30013728=1261566403616;
cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.c om/redir/public/avatar.htm%3Fv%3D3.0.6.4;
MAXAUTH=01000000170000006DA5314BEE28134D7BAA0F4BB1E42FEFD033 0EC3913F26C41ACABF9598722B7F;
1<br>
<br>
I compared them with the normal cookie string, I find all of the
abnormal cookie string contain "1;"<br>
It is sure that the "1;" cause the Apache2::Cookie parser error.<br>
I wonder how and why the "1;" is added, and how to fix it.<br>
<br>
<div class="moz-signature">-- <br>
<p
style="margin: 0pt 0pt 10px; font-size: 9pt; font-family: Verdana; line-height: 125%; color: rgb(128, 128, 128);">
<span style="color: rgb(0, 81, 151);"><strong>陈建春 | ChenJianchun</strong></span><br>
傲游Web应用部<br>
<span style="color: rgb(99, 36, 35); font-size: 8pt;"> E-mail: <a
href="mailto:chenjch [at] maxthon.net"
style="color: rgb(128, 128, 128); text-decoration: none;">chenjch [at] maxthon.net</a>
</span>
</p>
<p
style="margin: 0pt 0pt 10px; font-size: 9pt; font-family: Verdana; line-height: 175%; color: rgb(128, 128, 128);">
<span style="color: rgb(0, 81, 151); font-size: 11pt;"><strong>Maxthon<sup
style="font-size: 8pt;">®</sup></strong></span> --每个人的互联网中心!         <span
style="color: rgb(0, 81, 151); font-size: 9pt;">上网从傲游开始!</span><br>
<a href="http://www.maxthon.cn/"
style="color: rgb(66, 113, 144); text-decoration: none;">傲游天下科技有限公司(中国)</a>
| <a href="http://www.maxthon.cn/"
style="color: rgb(66, 113, 144); text-decoration: none; font-size: 8pt;">www.maxthon.cn</a>
</p>
<p
style="margin: 0pt; font-size: 9pt; font-family: Verdana; line-height: 150%; color: rgb(92, 115, 47);"><strong>诚
信、创新、务实、奋斗!</strong></p>
</div>
</body>
</html>

--------------040408020009070505060102--
chenjch [ Do, 24 Dezember 2009 04:39 ] [ ID #2027009 ]

Re: Apache2::Cookie cookie parse error "Expected token not present"

陈建春 wrote:
> hi
>
> Our web site http://passport.maxthon.cn use mod_perl2.0.
> but it displays "Expected token not present" on the page occasionally.
>
> I log the cookie string in header when the error occur, the abnormal
> cookie would like this:
>
> rtime30013728=0; ltime30013728=1261566403616;
> cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.c om/redir/public/avatar.htm%3Fv%3D3.0.6.4;
> 1;
> MAXAUTH=01000000170000005F47334BDF7A144D7BAA0F4B60AB448E3E79 ECE6D111B0BE6B9A461DF1237853
>
> rtime30013728=0; ltime30013728=1261566403616;
> cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.c om/redir/public/avatar.htm%3Fv%3D3.0.6.4;
> MAXAUTH=01000000170000006DA5314BEE28134D7BAA0F4BB1E42FEFD033 0EC3913F26C41ACABF9598722B7F;
> 1
>
> I compared them with the normal cookie string, I find all of the
> abnormal cookie string contain "1;"
> It is sure that the "1;" cause the Apache2::Cookie parser error.
> I wonder how and why the "1;" is added, and how to fix it.
>

There is nothing in mod_perl per se which creates a cookie.
That cookie must be created by an application, and it is that
application which adds a ;1 sometimes.

Also, incidentally, Apache2::Cookie is not really a part of mod_perl.
It is just a perl module which happens to run under mod_perl.
aw [ Do, 24 Dezember 2009 11:53 ] [ ID #2027010 ]
Webserver » gmane.comp.apache.mod-perl » Apache2::Cookie cookie parse error "Expected token not present"

Vorheriges Thema: Compile fails with perl 5.10.1
Nächstes Thema: mod_perl precompiling help