Thursday, May 31, 2012

A session problem using database(cake-sessions)

I'm planning to use the database session mode in cake 1.3 for load
balance through servers. However, in one of my servers, the session
expires immediately while i write a session value, and the records in
the database is odd and very very long.(The records from other servers
are short). It's something like this:

Config|N;s:9:"userAgent";s:
0:"";s:4:"time";i:
1339560686;s:7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:1339560681;s:
7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:1339560681;s:
7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560681;s:
7:"timeout";i:10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560681;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560681;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560680;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560637;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560636;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560636;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560635;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560634;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560633;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560625;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560625;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560624;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560624;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560623;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560622;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560621;s:
7:"timeout";i:
10;}s:
9:"userAgent";s:
0:"";s:
4:"time";i:
1339560620;s:
7:"timeout";i:
10;}login_errors|i:0;s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"
渣克
_benedicted";}
login_errors|i:0;s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"
渣克
_benedicted";}
login_errors|i:0;s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"
渣克
_benedicted";s:
5:"email";s:
17:"
渣克
_benedicted";s:
6:"avatar";s:
0:"";s:
8:"fullname";s:
0:"";s:
8:"is_agent";s:
1:"
1";}
login_errors|i:0;s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"
渣克
_benedicted";}
login_errors|i:0;login_errors|i:0;FrontendLogin|N;s:
3:"uid";s:4:"
2096";s:8:"username";s:
17:"渣克_benedicted";}s:
3:"uid";s:4:"
2096";s:
8:"username";s:17:"渣
克_benedicted";}s:
3:"uid";s:
4:"2096";s:
8:"username";s:
17:"渣克_benedicted";}
s:3:"uid";s:
4:"2096";s:
8:"username";s:
17:"渣克
_benedicted";}s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"渣克
_benedicted";}s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"渣克
_benedicted";}
verification_code|N;s:
4:"ppgb";FrontendLogin|
N;s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"渣克
_benedicted";}s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"渣克
_benedicted";s:
5:"email";s:
17:"渣克
_benedicted";s:
6:"avatar";s:
0:"";s:
8:"fullname";s:
0:"";s:
8:"is_agent";s:
1:"
1";}
weibo_access_token|N;s:
12:"access_token";s:
32:"
2.00MDvwrCT7LoOC573942f521uChIZD";s:
9:"remind_in";s:
5:"
60337";s:
10:"expires_in";i:
60337;s:
3:"uid";s:
10:"
2629453802";}s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"渣克
_benedicted";}
last_visiting_url|N;s:
1:"/
";s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"渣克
_benedicted";}
verification_code|N;s:
4:"
2ie6";FrontendLogin|
N;s:
12:"access_token";s:
32:"
2.00MDvwrCT7LoOC573942f521uChIZD";s:
9:"remind_in";s:
5:"
60347";s:
10:"expires_in";i:
60347;s:
3:"uid";s:
10:"
2629453802";}
s:
3:"uid";s:
4:"
2096";s:
8:"username";s:
17:"
渣克
_benedicted";}
last_visiting_url|N;verification_code|N;

what happens????

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: