Home  >  Article  >  Backend Development  >  关于session和验证码,该如何处理

关于session和验证码,该如何处理

WBOY
WBOYOriginal
2016-06-13 13:50:40807browse

关于session和验证码
我在thinkphp中 用验证码 验证码可以出来(验证码是存入到session中的)
  然后输出验证码的md5值  


发现输出的值 是没有的 而 刷新网页后 输出的验证码md5值是上一次的 以此 每次输出的都是上一次的值


求解下

------解决方案--------------------
验证码是个图片吧?

浏览器获取页面的时候,服务器端还未产生最新的验证码呢……,你说的是合理现象

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn