thinkPHP token验证机制

在ThinkPhp中通过SESSION实现了防止表单重复提交,实现方式如下:

<?php
    session_start();
    $_SESSION['__hash__'] = md5(microtime(true));
    echo <<<EOT
            <form action='a.php' method='post'>
            <input type="text" value="{$_SESSION['__hash__']}" name="__hash__"/>
            <input type="submit" value="login"/>
            </form>
    EOT;
?>
<?php
    session_start();
    $hash = $_REQUEST['__hash__'];
    if($_SESSION['__hash__'] == $hash){
       echo 'ok';
       $_SESSION['__hash__'] = md5(microtime(true));
    }else{
       echo 'token error';
    }

 

打赏

共有 171 条评论

  1. texas bealls coupons

    I truly appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thx again

  2. babies r us coupons 2016

    that is the finish of this report. Here you will find some websites that we think you will appreciate, just click the hyperlinks over

  3. Google

    Please visit the internet sites we comply with, like this 1, as it represents our picks from the web.

  4. Google

    We like to honor numerous other world-wide-web websites around the net, even when they arent linked to us, by linking to them. Below are some webpages really worth checking out.

  5. ring vibrator

    Here is a great Weblog You may Locate Intriguing that we Encourage You

  6. adam and eve sex toy shop

    that may be the end of this post. Right here you will come across some sites that we assume youll appreciate, just click the hyperlinks over

  7. New York pizza

    we came across a cool website that you simply could love. Take a look if you want

  8. thrusting anal sex

    check beneath, are some entirely unrelated web sites to ours, having said that, they may be most trustworthy sources that we use

  9. phenterminedispensary.com

    Here is a good Weblog You may Locate Fascinating that we Encourage You

  10. Cheap Detroit Pistons Jerseys

    Sites of interest we’ve a link to

  11. 韓国エスコートアガシ

    just beneath, are many entirely not associated sites to ours, however, they may be surely worth going over

  12. Arduino shields

    here are some links to internet sites that we link to due to the fact we consider they may be really worth visiting

  13. pc games for windows 7

    The data talked about within the write-up are a few of the very best readily available

  14. pc app for windows 8

    usually posts some extremely interesting stuff like this. If you are new to this site

  15. pc apps for windows 7

    one of our guests recently encouraged the following website

  16. 福井脱毛

    one of our guests not too long ago proposed the following website

  17. 福井脱毛

    the time to study or stop by the content material or sites we have linked to below the

  18. 福井脱毛

    that may be the finish of this post. Right here you will find some web pages that we consider you will enjoy, just click the links over

  19. 福井脱毛

    we came across a cool web-site that you simply might enjoy. Take a look in case you want

  20. 福井脱毛

    very handful of sites that take place to be in depth below, from our point of view are undoubtedly nicely worth checking out

  21. Inspection in China

    Every when inside a even though we pick blogs that we study. Listed below are the most current web-sites that we opt for

  22. how to deal with cheating

    that would be the finish of this report. Here youll discover some web pages that we believe youll appreciate, just click the hyperlinks over

  23. legitimate work from home

    the time to study or visit the subject material or internet sites we have linked to beneath the

  24. Cheap Toronto Blue Jays Jerseys

    here are some links to internet sites that we link to for the reason that we believe they are really worth visiting

  25. online beats

    one of our visitors a short while ago proposed the following website

  26. 戀愛的發現dvd

    Here is a good Blog You may Discover Exciting that we Encourage You

  27. best kona

    that will be the finish of this post. Here youll discover some web-sites that we believe you will appreciate, just click the links over

  28. chicago

    Here are several of the web pages we advocate for our visitors

  29. buy kona

    usually posts some quite intriguing stuff like this. If youre new to this site

  30. process

    we prefer to honor numerous other world-wide-web internet sites around the web, even when they arent linked to us, by linking to them. Under are some webpages really worth checking out

  31. Accounting

    Sites of interest we’ve a link to

  32. videos

    please go to the sites we follow, such as this one, because it represents our picks through the web

  33. adam and eve sex toys shop

    we like to honor many other world wide web web pages on the web, even when they arent linked to us, by linking to them. Under are some webpages worth checking out

  34. motu and patlu games

    just beneath, are many absolutely not connected web-sites to ours, on the other hand, they are certainly worth going over

  35. Daytona beach Margaritaville

    we prefer to honor several other world wide web web sites around the web, even if they arent linked to us, by linking to them. Underneath are some webpages really worth checking out

  36. buy kona

    please check out the web-sites we stick to, including this 1, as it represents our picks from the web

  37. Battery repair

    Here is a superb Weblog You may Discover Fascinating that we Encourage You

  38. Water softener

    Here is a great Weblog You might Obtain Exciting that we Encourage You

  39. robert

    Sites of interest we’ve a link to

  40. nSpire Network Signup

    Sites of interest we have a link to

  41. brass findings

    please stop by the sites we stick to, such as this 1, as it represents our picks through the web

  42. Movies online

    Wonderful story, reckoned we could combine a few unrelated information, nonetheless truly worth taking a appear, whoa did a single study about Mid East has got a lot more problerms at the same time

  43. opening up std

    that may be the end of this post. Here youll locate some web-sites that we consider youll value, just click the links over

  44. dating relationship

    we came across a cool web-site that you may enjoy. Take a search in case you want

  45. sex whip

    Every after inside a even though we choose blogs that we read. Listed below would be the most up-to-date web-sites that we select

  46. Adam and Eve Toys

    please pay a visit to the web-sites we comply with, which includes this 1, as it represents our picks from the web

  47. Glass Sex Toys

    although internet sites we backlink to below are considerably not connected to ours, we really feel they’re in fact worth a go through, so have a look

  48. boot camp instructor

    that is the end of this post. Here you will locate some web-sites that we consider you will value, just click the hyperlinks over

  49. TensorFlow

    Wonderful story, reckoned we could combine a number of unrelated information, nevertheless actually really worth taking a search, whoa did a single master about Mid East has got far more problerms too

  50. best kona

    the time to read or check out the material or sites we have linked to beneath the

  51. shasta lake fishing

    although internet sites we backlink to below are considerably not associated to ours, we feel they’re essentially worth a go via, so possess a look

  52. jaw bone

    Wonderful story, reckoned we could combine a handful of unrelated data, nevertheless seriously really worth taking a appear, whoa did a single understand about Mid East has got more problerms as well

  53. bandra

    that is the finish of this post. Here you will discover some web sites that we believe you will appreciate, just click the hyperlinks over

  54. Best Strap On Dildo

    The information and facts mentioned inside the post are a few of the very best out there

  55. Adult Store

    please visit the sites we follow, including this a single, as it represents our picks through the web

  56. Buy Beer Online

    Wonderful story, reckoned we could combine a number of unrelated data, nevertheless definitely worth taking a search, whoa did one particular find out about Mid East has got more problerms too

  57. ChasMulp

    Pillola Viagra Senza Ricetta viagra Levothyrox No Prescription

  58. Desert tan military boots

    Here is an excellent Blog You might Discover Interesting that we Encourage You

  59. Google

    Here is an excellent Weblog You might Come across Interesting that we encourage you to visit.

  60. g spot sex toy

    although web-sites we backlink to beneath are considerably not associated to ours, we feel they are in fact really worth a go through, so possess a look

  61. HPMC capsules

    although web sites we backlink to beneath are considerably not related to ours, we really feel they may be truly really worth a go as a result of, so possess a look

  62. Web Application Development Company

    Sites of interest we’ve a link to

  63. business directory in santa barbara

    just beneath, are a lot of absolutely not associated web sites to ours, even so, they’re surely worth going over

  64. men

    check below, are some completely unrelated internet sites to ours, on the other hand, they may be most trustworthy sources that we use

  65. Google

    Every when inside a whilst we pick blogs that we read. Listed beneath are the most up-to-date websites that we pick out.

  66. women

    here are some hyperlinks to websites that we link to because we believe they’re worth visiting

  67. wholesale jordans

    Here is an excellent Weblog You may Obtain Fascinating that we Encourage You

  68. Google

    Usually posts some very interesting stuff like this. If you are new to this site.

  69. cock rings

    usually posts some very intriguing stuff like this. If you are new to this site

  70. careers that work from home

    one of our visitors not long ago advised the following website

  71. best kona

    always a significant fan of linking to bloggers that I adore but really don’t get lots of link like from

  72. 100% kona coffee

    the time to study or stop by the content or web-sites we have linked to below the

  73. everyday deals trademark

    one of our guests just lately encouraged the following website

  74. sex toy review

    one of our visitors a short while ago encouraged the following website

  75. Double Ended Dildo

    here are some links to internet sites that we link to simply because we feel they’re really worth visiting

  76. how to make extra money

    Sites of interest we’ve a link to

  77. tratamento de drogas

    Sites of interest we have a link to

  78. buy usa business email lists

    just beneath, are numerous entirely not related sites to ours, on the other hand, they’re certainly worth going over

  79. barcode kaufen

    Here are a number of the internet sites we advise for our visitors

  80. web site

    The information mentioned within the post are a few of the top accessible

  81. easy murphy bed

    The facts talked about in the article are a few of the best obtainable

  82. jadoo

    Here are several of the web sites we advocate for our visitors

  83. golds gym

    Wonderful story, reckoned we could combine some unrelated data, nonetheless really really worth taking a search, whoa did one particular understand about Mid East has got extra problerms too

  84. unique antiques

    that may be the end of this post. Right here youll find some sites that we feel you will value, just click the hyperlinks over

  85. vintage collectibles

    very handful of web-sites that transpire to be detailed beneath, from our point of view are undoubtedly effectively really worth checking out

  86. email processing

    that is the end of this write-up. Right here you will come across some internet sites that we assume youll value, just click the links over

  87. g-spot

    The information and facts mentioned in the post are several of the most effective obtainable

  88. cheap cock rings

    Sites of interest we’ve a link to

  89. sex toys cleaner

    one of our visitors not long ago proposed the following website

  90. butterfly sex toys

    usually posts some quite intriguing stuff like this. If you are new to this site

  91. adam and eve sex toys

    Every once in a although we select blogs that we read. Listed below are the newest sites that we pick out

  92. luxury bullet sex toy

    check beneath, are some entirely unrelated internet websites to ours, however, they are most trustworthy sources that we use

  93. pink rabbit sex toy

    below youll uncover the link to some websites that we assume it is best to visit

  94. how to surf

    here are some hyperlinks to internet sites that we link to since we believe they are really worth visiting

  95. suction cup vibrator

    that may be the end of this article. Right here you will locate some websites that we think you will enjoy, just click the links over

  96. ean code

    we came across a cool web site that you simply could possibly enjoy. Take a search if you want

  97. 100% pure kona

    very couple of sites that happen to be comprehensive beneath, from our point of view are undoubtedly effectively worth checking out

  98. Rajamangala University of Technology Thanyaburi

    please take a look at the web pages we adhere to, which includes this 1, as it represents our picks from the web

  99. tratamento Alcoolismo

    Here are a number of the websites we recommend for our visitors

  100. Rajamangala University of Technology Thanyaburi

    Here is a great Weblog You may Find Interesting that we Encourage You

  101. download music video

    one of our guests not too long ago advised the following website

  102. Home Goods

    Here are some of the internet sites we recommend for our visitors

  103. vibrator

    usually posts some very interesting stuff like this. If you are new to this site

  104. womens sex toy

    just beneath, are quite a few absolutely not associated sites to ours, however, they are certainly really worth going over

  105. realistic vibrator

    usually posts some extremely intriguing stuff like this. If youre new to this site

  106. evolved duo vibrator

    here are some hyperlinks to web sites that we link to since we feel they are really worth visiting

  107. rabbit vibrator

    below you will uncover the link to some sites that we assume you’ll want to visit

  108. foreplay sex toys

    here are some links to internet sites that we link to because we think they’re worth visiting

  109. free download for windows 8

    we prefer to honor several other net web sites on the web, even if they arent linked to us, by linking to them. Underneath are some webpages worth checking out

  110. basement finishing specialist in Atlanta

    Every once in a when we opt for blogs that we read. Listed beneath would be the most recent web pages that we select

  111. scr3888

    always a huge fan of linking to bloggers that I enjoy but dont get a whole lot of link adore from

  112. DabJars

    we came across a cool website that you just might appreciate. Take a appear if you want

  113. egyptian sheets sale

    Here is a great Weblog You might Obtain Exciting that we Encourage You

  114. VIO脱毛 短期間

    脱毛の中で最も面倒な全身脱毛を短期間で完了する方法

  115. Wholesaler NEP

    the time to study or pay a visit to the content or web pages we’ve linked to beneath the

  116. rampant vibrator

    we came across a cool site that you simply may well take pleasure in. Take a appear in the event you want

  117. Venture Point Network

    always a significant fan of linking to bloggers that I like but really don’t get lots of link really like from

  118. most powerful vibrator

    below youll find the link to some web sites that we consider you ought to visit

  119. vibrator for beginners

    below you will discover the link to some web pages that we feel you should visit

  120. Google

    Always a significant fan of linking to bloggers that I appreciate but dont get a good deal of link really like from.

  121. circles

    very handful of web-sites that take place to be detailed beneath, from our point of view are undoubtedly effectively really worth checking out

  122. butt plug

    always a major fan of linking to bloggers that I appreciate but do not get a whole lot of link adore from

  123. flesh like dildo

    the time to read or take a look at the subject material or web pages we have linked to below the

  124. I Love News Paper

    the time to study or check out the material or internet sites we’ve linked to beneath the

  125. Taoist Real Sex Talk

    the time to read or check out the material or web sites we have linked to beneath the

  126. luxury sex toys

    Here are a number of the internet sites we advocate for our visitors

  127. AR-670-1 compliant uniform boots

    that could be the finish of this report. Right here youll find some web-sites that we think youll value, just click the links over

  128. free download for windows 8free download for pc

    Sites of interest we’ve a link to

  129. sex frequency

    The data talked about within the write-up are a few of the most effective obtainable

  130. end of tenancy cleaning Melbourne

    always a big fan of linking to bloggers that I enjoy but dont get lots of link really like from

  131. real feel penis

    that could be the end of this article. Here youll find some web-sites that we believe you will enjoy, just click the links over

  132. cleaning windows and mirrors

    please stop by the websites we follow, like this one, as it represents our picks from the web

  133. label besi

    The facts mentioned within the article are a number of the very best offered

  134. penis enlargement pump

    although websites we backlink to below are considerably not connected to ours, we feel they’re in fact worth a go via, so possess a look

  135. end of tenancy cleaning Melbourne

    please visit the websites we stick to, like this 1, because it represents our picks in the web

  136. commercial pest control service

    although web-sites we backlink to beneath are considerably not related to ours, we feel they may be in fact really worth a go through, so have a look

  137. vibrating butt plug

    Every once inside a when we select blogs that we read. Listed below would be the latest web sites that we pick out

  138. butt plug

    check below, are some totally unrelated internet websites to ours, even so, they’re most trustworthy sources that we use

  139. anal toy

    check beneath, are some absolutely unrelated sites to ours, nevertheless, they may be most trustworthy sources that we use

  140. Butterfly Vibrator

    although internet websites we backlink to below are considerably not connected to ours, we really feel they’re essentially worth a go via, so have a look

  141. Beads

    we came across a cool web page that you just might take pleasure in. Take a search in case you want

  142. sex toy reviews

    The data talked about in the write-up are several of the most effective offered

  143. vibrator pink

    always a big fan of linking to bloggers that I enjoy but do not get lots of link appreciate from

  144. vacate cleaning Melbourne

    usually posts some extremely exciting stuff like this. If youre new to this site

  145. bandiere

    Every after in a even though we choose blogs that we read. Listed beneath are the most up-to-date web pages that we pick out

  146. Get the latest news and information on sports and championship events

    here are some links to web pages that we link to due to the fact we believe they’re worth visiting

  147. kala jadu

    Here is a great Blog You may Uncover Intriguing that we Encourage You

  148. borvest inkral

    I discovered your blog site on google and check a few of your early posts. Continue to keep up the very good operate. I just additional up your RSS feed to my MSN News Reader. Seeking forward to reading more from you later on!…

  149. kala jadu

    here are some hyperlinks to web sites that we link to because we assume they may be really worth visiting

  150. interior design Singapore

    Here are some of the sites we recommend for our visitors

  151. g spot vibrator

    Wonderful story, reckoned we could combine a handful of unrelated information, nevertheless seriously really worth taking a appear, whoa did a single discover about Mid East has got extra problerms at the same time

  152. silicone g

    The information and facts talked about in the article are some of the top obtainable

  153. Butterfly Kiss Vibrator

    although internet websites we backlink to beneath are considerably not associated to ours, we feel they may be essentially really worth a go by, so have a look

  154. Google

    That may be the end of this post. Right here you will discover some web-sites that we believe youll value, just click the hyperlinks.

  155. Rabbit Vibrator

    here are some links to internet sites that we link to because we feel they may be worth visiting

  156. borvestinkral

    Enjoyed looking at this, very good stuff, regards. “Golf isn’t a game, it’s a choice that one makes with one’s life.” by Charles Rosin.

  157. Sex Cream

    The facts talked about in the report are a number of the very best out there

  158. Magic Wand Massager

    check below, are some completely unrelated web sites to ours, nevertheless, they’re most trustworthy sources that we use

  159. Blue Dolphin Sex Toy

    Sites of interest we have a link to

  160. Best Masturbator

    please go to the web pages we stick to, like this 1, as it represents our picks in the web

  161. Under The Bed Restraints

    Every after in a whilst we opt for blogs that we read. Listed beneath would be the newest web pages that we opt for

  162. Sex lubricant

    The info talked about in the write-up are a few of the ideal readily available

  163. adam and eve lube

    very few internet sites that happen to become comprehensive beneath, from our point of view are undoubtedly properly really worth checking out

  164. vacate cleaning Melbourne

    The info mentioned within the write-up are several of the best readily available

  165. www.spu.ac.th

    Wonderful story, reckoned we could combine a few unrelated data, nonetheless truly really worth taking a look, whoa did 1 study about Mid East has got much more problerms also

  166. longer erection

    check below, are some absolutely unrelated internet sites to ours, even so, they’re most trustworthy sources that we use

  167. free games download for windows 8

    Sites of interest we have a link to

  168. www.spu.ac.th

    Here is a great Blog You may Obtain Interesting that we Encourage You

  169. couples sex kit

    here are some links to web sites that we link to because we consider they are worth visiting

  170. hydraulic cylinder repair

    just beneath, are a lot of entirely not connected websites to ours, however, they may be surely really worth going over

  171. anal toy

    The facts talked about in the write-up are a few of the most beneficial obtainable

Top