陈建春 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.com/redir/public/avatar.htm%3Fv%3D3.0.6.4; > 1; > MAXAUTH=01000000170000005F47334BDF7A144D7BAA0F4B60AB448E3E79ECE6D111B0BE6B9A461DF1237853 > > rtime30013728=0; ltime30013728=1261566403616; > cnzz_eid30013728=98941722-1261566395-http%3A//gocn.maxthon.com/redir/public/avatar.htm%3Fv%3D3.0.6.4; > MAXAUTH=01000000170000006DA5314BEE28134D7BAA0F4BB1E42FEFD0330EC3913F26C41ACABF9598722B7F; > 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.