摘要:
原理是:首先在表单页生成一个 随机不重复的 token(可以利用时间戳),把 token 的值分别存入 session 和 表单的隐藏域;当提交表单的时候,在接收页对比传递过来的 token 和session 中的 token ,当两者相等时,重新生成一个 token 并存入 session。此时如... 阅读全文
posted @ 2015-02-28 20:19
nemo20
阅读(215)
评论(0)
推荐(0)
摘要:
1 hash = mt_rand(1,9999);13 }14 15 static public function getInstance(){16 if(self::$ins instanceof self){ //instanceof 判断某个对象是不是某个类的... 阅读全文
posted @ 2015-02-28 18:38
nemo20
阅读(289)
评论(0)
推荐(0)
浙公网安备 33010602011771号