Cookies的使用
public String toString(){ SimpleDateFormat formatter = new SimpleDateFormat("MMddHHmmssSSS"); String time = formatter.format( new Date()); serial++; if(serial>999) serial = 0; int random=(int)(Math.random()*10000); return time+ formatSting(serial+ "", 3, '0')+ formatString(random+ "", 4, '0');}
数据库中的一条记录
id sitename sid ip qstring user createtime back host
1880963 youxi 0325151720458269638 218.206.252.66 p=youxi null 2011-03-25 15:19:16 null wap