{"id":801,"date":"2011-12-21T02:04:54","date_gmt":"2011-12-20T18:04:54","guid":{"rendered":""},"modified":"2014-03-11T22:41:36","modified_gmt":"2014-03-11T14:41:36","slug":"asp%e9%98%b2%e9%87%87%e9%9b%86%e4%bb%a3%e7%a0%81-%e5%87%a0%e6%8b%9b%e8%ae%a9%e4%bd%a0%e7%9a%84%e7%bd%91%e7%ab%99%e5%85%8d%e5%8f%97%e9%87%87%e9%9b%86%e4%b9%8b%e8%8b%a6","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2011\/12\/21\/801.htm","title":{"rendered":"ASP\u9632\u91c7\u96c6\u4ee3\u7801-\u51e0\u62db\u8ba9\u4f60\u7684\u7f51\u7ad9\u514d\u53d7\u91c7\u96c6\u4e4b\u82e6"},"content":{"rendered":"<p>\u5982\u4eca\u7684\u91c7\u96c6\u7cfb\u7edf\u662f\u4e00\u4e2a\u6bd4\u4e00\u4e2aNB\uff0c\u7ad9\u957f\u4eec\u8f9b\u82e6\u6536\u96c6\u5236\u4f5c\u7684\u7f51\u7ad9\u5185\u5bb9\u603b\u662f\u5f88\u5feb\u51fa\u73b0\u5728\u5728\u53e6\u4e00\u4e2a\u7f51\u7ad9\u4e0a\uff0c\u4e00\u4e2a\u7f51\u7ad9\u8f7b\u6613\u7684\u5c31\u88ab\u590d\u5236\u4e86\u53c8\u590d\u5236\u3002\u6709\u529e\u6cd5\u65e2\u4e0d\u5f71\u54cd\u641c\u7d22\u5f15\u64ce\u7684\u6b63\u5e38\u6536\u5165\u53c8\u80fd\u89e3\u51b3\u7f51\u7ad9\u88ab\u91c7\u96c6\u4e4b\u82e6\u4e48\uff1f\u7b54\u6848\u662f\u80af\u5b9a\u7684\u3002<\/p>\n<p>\u6700\u5e38\u7528\u7684\u9632\u91c7\u96c6\u65b9\u6cd5\uff1a<\/p>\n<p>1.\u6bcf\u4e2a\u6587\u7ae0\u7684\u547d\u540d\u4e0d\u8981\u6709\u4efb\u4f55\u89c4\u5f8b\uff0c\u6bd4\u5982\u4f60\u7684\u6587\u7ae0\u662f&lt;%=id%&gt;.htm\u7684\u8bdd\uff0c\u8bf7\u5728\u524d\u9762\u6216\u540e\u9762\u751f\u6210\u4e2a\u65e5\u671f\uff0c\u5982\uff1a20070911-1234.htm,\u524d\u9762\u7684\u5c31\u662f\u65e5\u671f\u4e86\uff0c\u8fd9\u6837\u5bf9\u91c7\u96c6\u65b0\u624b\u6765\u8bf4\u662f\u975e\u5e38\u6709\u6548\u7684\u3002<\/p>\n<p>2.\u4e0d\u8981\u628a\u6240\u6709\u7684\u6587\u7ae0\u90fd\u653e\u5728\u4e00\u4e2a\u76ee\u5f55\u4e0b\uff0c\u4f60\u53ef\u4ee5\u5229\u7528\u65e5\u671f\u751f\u6210\u4e0d\u540c\u7684\u76ee\u5f55\u540d\u3002<\/p>\n<p>3.\u4e0d\u8981\u6240\u6709\u7684\u6587\u7ae0\u90fd\u7528\u4e00\u4e2a\u6a21\u677f\uff0c\u5236\u4f5c\u5c3d\u91cf\u591a\u7684\u6a21\u677f\uff0c\u6dfb\u6587\u7ae0\u7684\u65f6\u5019\u53ef\u6709\u9009\u8981\u7528\u54ea\u4e2a\u6a21\u677f\uff0c\u4e00\u822c\u91c7\u96c6\u8005\u7684\u91c7\u96c6\u7a0b\u5e8f\u662f\u6709\u9488\u5bf9\u6027\u7684\uff0c\u4ed6\u5728\u91c7\u96c6\u524d\u4f1a\u5bf9\u4f60\u7684\u9875\u9762\u8fdb\u884c\u5206\u6790\uff0c\u5982\u679c\u4f60\u6240\u6709\u7684\u9875\u9762\u6392\u7248\u65e0\u89c4\u5f8b\u53ef\u5bfb\uff0c\u90a3\u4e48\u6211\u60f3\u4ed6\u5c31\u4f1a\u653e\u5f03\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u4e09\u79cd\u65b9\u6cd5\u80fd\u9632\u4f4f\u521d\u7ea7\u91c7\u96c6\u7684\uff0c\u4f46\u662f\u5bf9\u9ad8\u624b\u6765\u8bf4\u6ca1\u4ec0\u4e48\u7528\u3002<\/p>\n<p>\u4e0b\u9762\u4e09\u79cd\u65b9\u6cd5\u7528\u9650\u5236\u91c7\u96c6\u4eba\u7684IP\u6216SESSION\u7684\u65b9\u6cd5\u6765\u8fbe\u5230\u9632\u91c7\u96c6\u7684\u76ee\u7684\u3002<\/p>\n<p>\u65b9\u6cd5\u4e00\uff1a\uff08ASP\u4ee3\u7801\uff09\uff1a<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#fdfddf\" style=\"word-wrap: break-word\"><font color=\"#ff0000\">\u4ee5\u4e0b\u4e3a\u5f15\u7528\u7684\u5185\u5bb9\uff1a<\/font><br \/>\n            &lt;%<br \/>\n            Dim AppealNum,AppealCount<br \/>\n            AppealNum=10 &#8216;\u540c\u4e00IP60\u79d2\u5185\u8bf7\u6c42\u9650\u523610\u6b21<br \/>\n            AppealCount=Request.Cookies(&quot;AppealCount&quot;) <br \/>\n            If AppealCount=&quot;&quot; Then<br \/>\n            response.Cookies(&quot;AppealCount&quot;)=1<br \/>\n            AppealCount=1<br \/>\n            response.cookies(&quot;AppealCount&quot;).expires=dateadd(&quot;s&quot;,60,now())<br \/>\n            Else<br \/>\n            response.Cookies(&quot;AppealCount&quot;)=AppealCount+1<br \/>\n            response.cookies(&quot;AppealCount&quot;).expires=dateadd(&quot;s&quot;,60,now())<br \/>\n            End If<br \/>\n            if int(AppealCount)&gt;int(AppealNum) then<br \/>\n            response.write &quot;\u8bbe\u8ba1\u5bb6\u56ed \u63d0\u9192\u60a8\uff1a\u6293\u53d6\u5f88\u7d2f\uff0c\u6b47\u4e00\u4f1a\u513f\u5427\uff01&quot;<br \/>\n            response.end<br \/>\n            End If<br \/>\n            %&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7b2c\u4e8c\u79cd\u65b9\u6cd5(ASP)\uff1a<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#fdfddf\" style=\"word-wrap: break-word\"><font color=\"#ff0000\">\u4ee5\u4e0b\u4e3a\u5f15\u7528\u7684\u5185\u5bb9\uff1a<\/font><br \/>\n            &lt;%<br \/>\n            user_agent=Request.ServerVariables(&quot;HTTP_USER_AGENT&quot;)<br \/>\n            http_reffer=Request.ServerVariables(&quot;HTTP_REFERER&quot;)<br \/>\n            server_name=Request.ServerVariables(&quot;SERVER_NAME&quot;)<br \/>\n            &#8216;\u68c0\u67e5\u5f53\u524d\u7528\u6237\u662f\u5426\u662f\u8718\u86db\u4eba<br \/>\n            function check(user_agent)<br \/>\n            allow_agent=split(&quot;Baiduspider,Scooter,ia_archiver,Googlebot,FAST-WebCrawler,MSNBOT,Slurp&quot;,&quot;,&quot;)<br \/>\n            check_agent=false<br \/>\n            for agenti=lbound(allow_agent) to ubound(allow_agent)<br \/>\n            if instr(user_agent,allow_agent(agenti))&gt;0 then<br \/>\n            check_agent=true<br \/>\n            exit for<br \/>\n            end if<br \/>\n            next<br \/>\n            check=check_agent<br \/>\n            end function<br \/>\n            if check(user_agent)=False then<br \/>\n            if http_reffer=&quot;&quot; or left(http_reffer,len(&quot;http:\/\/&quot;&amp;server_name)+1)&lt;&gt;&quot;http:\/\/&quot;&amp;server_name&amp;&quot;\/&quot; then<br \/>\n            %&gt;<br \/>\n            &lt;html&gt;&lt;body&gt;<br \/>\n            &lt;form action=&#8221; name=checkrefer id=checkrefer method=post&gt;<br \/>\n            &lt;\/form&gt;<br \/>\n            &lt;script&gt;<br \/>\n            document.all.checkrefer.action=document.URL;<br \/>\n            document.all.checkrefer.submit();<br \/>\n            &lt;\/script&gt;<br \/>\n            &lt;\/body&gt;&lt;\/html&gt;<br \/>\n            &lt;%response.end<br \/>\n            end if<br \/>\n            end if<br \/>\n            %&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7b2c\u4e09\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p>\u7528Persistence\u4e3a\u9759\u6001\u9875\u9762\u589e\u52a0session\u529f\u80fd<\/p>\n<p>\u4e00\u822c\u6765\u8bf4\uff0c\u53ea\u6709\u670d\u52a1\u5668\u7aef\u7684CGI\u7a0b\u5e8f\uff08ASP\u3001PHP\u3001JSP\uff09\u5177\u6709session\u4f1a\u8bdd\u529f\u80fd\uff0c\u7528\u6765\u4fdd\u5b58\u7528\u6237\u5728\u7f51\u7ad9\u671f\u95f4\uff08\u4f1a\u8bdd\uff09\u7684\u6d3b\u52a8\u6570\u636e\u4fe1\u606f\uff0c\u800c\u5bf9\u4e8e\u6570\u91cf\u4f17\u591a\u7684\u9759\u6001\u9875\u9762\uff08HTML\uff09\u6765\u8bf4\uff0c\u53ea\u80fd\u4f7f\u7528\u5ba2\u6237\u7aef\u7684cookies\u6765\u4fdd\u5b58\u4e34\u65f6\u6d3b\u52a8\u6570\u636e\uff0c\u4f46\u5bf9\u4e8ecookies\u7684\u64cd\u4f5c\u662f\u4e2a\u5f88\u70e6\u7410\u7684\u8fc7\u7a0b\uff0c\u8fdc\u6ca1\u6709\u5bf9\u4e8esession\u64cd\u4f5c\u90a3\u6837\u7b80\u4fbf\u3002\u4e3a\u6b64\uff0c\u672c\u6587\u5411\u8bfb\u8005\u63a8\u8350\u4e00\u79cd\u5728DHTML\u4e2d\u7684\u89e3\u51b3\u65b9\u6848&ldquo;Persistence\u6280\u672f&rdquo;\uff0c\u4f7f\u5f97\u5728\u9759\u6001\u9875\u9762\u4e2d\u4e5f\u80fd\u4f7f\u7528session\u4f1a\u8bdd\u529f\u80fd\u3002<\/p>\n<p>Microsoft\u3000Internet Explorer 5\u6d4f\u89c8\u5668\u548c\u4ee5\u540e\u7684\u7248\u672c\u90fd\u652f\u6301\u4f7f\u7528\u72b6\u6001\u4fdd\u6301\uff08Persistence\uff09\u6280\u672f\uff0c\u8ba9\u6211\u4eec\u80fd\u591f\u5728\u5f53\u524d\u4f1a\u8bdd\u8fc7\u7a0b\u4e2d\u4fdd\u5b58\u4e00\u4e9b\u6570\u636e\u5bf9\u8c61\u5230\u5ba2\u6237\u7aef\uff0c\u51cf\u5c11\u4e86\u5bf9\u670d\u52a1\u5668\u7684\u8bbf\u95ee\u8bf7\u6c42\uff0c\u5145\u5206\u53d1\u6325\u4e86\u5ba2\u6237\u7aef\u8ba1\u7b97\u673a\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\uff0c\u4ece\u800c\u4e5f\u6574\u4f53\u63d0\u5347\u4e86\u9875\u9762\u663e\u793a\u6548\u7387\u3002<\/p>\n<p>Persistence\u6280\u672f\u6709\u4ee5\u4e0b\u51e0\u79cd\u884c\u4e3a\u53ef\u4f9b\u8c03\u7528\uff1a<\/p>\n<p>&middot; saveFavorite&mdash;\u5f53\u9875\u9762\u88ab\u6dfb\u52a0\u5230\u6536\u85cf\u5939\u65f6\u4fdd\u5b58\u9875\u9762\u72b6\u6001\u548c\u4fe1\u606f <br \/>\n&middot; saveHistory&mdash;\u5728\u5f53\u524d\u4f1a\u8bdd\u4e2d\u4fdd\u5b58\u9875\u9762\u72b6\u6001\u548c\u4fe1\u606f <br \/>\n&middot; saveSnapshot&mdash;\u5f53\u9875\u9762\u88ab\u4fdd\u5b58\u5230\u786c\u76d8\u65f6\uff0c\u4fdd\u5b58\u9875\u9762\u72b6\u6001\u548c\u4fe1\u606f <br \/>\n&middot; userData&mdash;\u5728\u5f53\u524d\u4f1a\u8bdd\u4e2d\u7528XML\u683c\u5f0f\u4fdd\u5b58\u9875\u9762\u72b6\u6001\u548c\u4fe1\u606f <br \/>\nPersistence\u6280\u672f\u6253\u7834\u4e86\u4ee5\u524d\u4f7f\u7528cookies\u548csession\u7684\u4f20\u7edf\uff0c\u7ee7\u627f\u4e86cookies\u7684\u4e00\u4e9b\u5b89\u5168\u7b56\u7565\uff0c\u540c\u65f6\u4e5f\u589e\u52a0\u4e86\u5b58\u50a8\u548c\u7ba1\u7406\u6570\u636e\u7684\u80fd\u529b\u3002\u6211\u4eec\u7684\u6bcf\u4e2a\u9875\u9762\u670964KB\u7684\u7528\u6237\u6570\u636e\u5b58\u50a8\u5bb9\u91cf\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u7ad9\u70b9\u603b\u8ba1\u6709640KB\u7684\u5b58\u50a8\u4e0a\u9650\u3002<\/p>\n<p>Persistence\u6280\u672f\u5b58\u50a8\u7684\u6570\u636e\u683c\u5f0f\u7b26\u5408XML\u6807\u51c6\uff0c\u6240\u4ee5\u53ef\u4ee5\u4f7f\u7528DOM\u6280\u672f\u4e2d\u7684getAttribute\u548csetAttribute\u65b9\u6cd5\u6765\u5b58\u53d6\u6570\u636e\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2aPersistence\u6280\u672f\u7684\u5178\u578b\u5e94\u7528\uff0c\u901a\u8fc7\u5bf9Persistence\u5b58\u50a8\u6570\u636e\u7684\u5206\u6790\uff0c\u4f7f\u5f97\u9759\u6001\u9875\u9762\u5177\u6709\u9a8c\u8bc1\u529f\u80fd\u3002<\/p>\n<p>\u5b9e\u9645\u5224\u65ad\u8fc7\u7a0b\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<p>1.\u6709\u4e09\u4e2a\u5bf9\u8c61\uff1a\u6e38\u5ba2V\u3001\u5bfc\u822a\u9875\u9762A\u3001\u5185\u5bb9\u9875\u9762C <br \/>\n2.\u6e38\u5ba2V\u53ea\u80fd\u901a\u8fc7\u5bfc\u822a\u9875\u9762A\u7684\u94fe\u63a5\u624d\u80fd\u770b\u5230\u5185\u5bb9\u9875\u9762C\uff1b <br \/>\n3.\u5982\u679c\u6e38\u5ba2V\u662f\u901a\u8fc7\u5176\u5b83\u9014\u5f84\u6765\u8bbf\u95ee\u5185\u5bb9\u9875\u9762C\uff08\u6bd4\u5982\u901a\u8fc7\u5176\u5b83\u7f51\u7ad9\u7684\u8d85\u94fe\u63a5\u3001\u76f4\u63a5\u5728IE\u5730\u5740\u680f\u4e2d\u8f93\u5165\u7f51\u5740\u8bbf\u95ee\u7b49\uff09\uff0c\u5185\u5bb9\u9875\u9762C\u5c06\u81ea\u52a8\u63d0\u793a\u7248\u6743\u4fe1\u606f\uff0c\u663e\u793a\u7a7a\u767d\u9875\u3002 <br \/>\n\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\uff1a<\/p>\n<p>&middot; \u5728&ldquo;\u5bfc\u822a\u9875\u9762&rdquo;\u4e2d\u52a0\u5165\u4e00\u4e2aSTYLE\u7528\u6765\u5b9a\u4e49persistent\u7c7b\uff0c\u540c\u65f6\u52a0\u5165\u5b58\u50a8\u51fd\u6570fnSave\u7528\u6765\u6388\u6743\u3002<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#fdfddf\" style=\"word-wrap: break-word\"><font color=\"#ff0000\">\u4ee5\u4e0b\u4e3a\u5f15\u7528\u7684\u5185\u5bb9\uff1a<\/font><br \/>\n            &lt;STYLE&gt;<br \/>\n            .userData {behavior:url(#default#userdata);}<br \/>\n            &lt;\/STYLE&gt;<br \/>\n            &lt;SCRIPT language=Javascript&gt;<br \/>\n            function fnSave(){<br \/>\n            oPersistDiv.setAttribute(&quot;bIsValid&quot;,&quot;true&quot;);<br \/>\n            oPersistDiv.save(&quot;oXMLStore&quot;);<br \/>\n            }<br \/>\n            &lt;\/SCRIPT&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&middot; \u5728&ldquo;\u5bfc\u822a\u9875\u9762&rdquo;\u7684&lt;body&gt;\u548c&lt;\/body&gt;\u533a\u57df\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u5c42\u7528\u6765\u6807\u8bc6Persistence\u5bf9\u8c61<\/p>\n<p>&lt;DIV CLASS=userData ID=&quot;oPersistDiv&quot;&gt;&lt;\/DIV&gt;<\/p>\n<p>&middot; \u5728&ldquo;\u5bfc\u822a\u9875\u9762&rdquo;\u7684\u8d85\u94fe\u63a5\u5c5e\u6027\u4e2d\u52a0\u5165\u4e00\u6761\u8bed\u53e5\u7528\u6765\u8c03\u7528\u51fd\u6570fnSave\uff1a<\/p>\n<p>&lt;a href=&#8217;redhat2.htm&#8217; <i>onmouse<\/i>down=&quot;fnSave()&quot;&gt;<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4e3a&ldquo;\u5185\u5bb9\u9875\u9762&rdquo;\u52a0\u5165\u9a8c\u8bc1\u529f\u80fd\u3002<\/p>\n<p>&middot; \u5728&ldquo;\u5185\u5bb9\u9875\u9762&rdquo;\u4e2d\u52a0\u5165\u4e00\u4e2aSTYLE\u7528\u6765\u5b9a\u4e49persistent\u7c7b\uff0c\u540c\u65f6\u52a0\u5165\u5b58\u50a8\u51fd\u6570fnLoad\u7528\u6765\u5224\u65ad\u5408\u6cd5\u6027\u3002<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#fdfddf\" style=\"word-wrap: break-word\"><font color=\"#ff0000\">\u4ee5\u4e0b\u4e3a\u5f15\u7528\u7684\u5185\u5bb9\uff1a<\/font><br \/>\n            &lt;STYLE&gt;<br \/>\n            .userData {behavior:url(#default#userdata);}<br \/>\n            &lt;\/STYLE&gt;<br \/>\n            &lt;SCRIPT&gt;<br \/>\n            var bPageValid=false;<br \/>\n            function fnLoad(){<br \/>\n            oPersistDiv.load(&quot;oXMLStore&quot;);<br \/>\n            if((oPersistDiv.getAttribute(&quot;bIsValid&quot;))&amp;&amp;<br \/>\n            (oPersistDiv.getAttribute(&quot;bIsValid&quot;)==&quot;true&quot;)){<br \/>\n            bPass=true;<br \/>\n            }<br \/>\n            else{<br \/>\n            bPass=false;<br \/>\n            }<br \/>\n            oPersistDiv.setAttribute(&quot;bIsValid&quot;,&quot;false&quot;);<br \/>\n            oPersistDiv.save(&quot;oXMLStore&quot;); <br \/>\n            if(bPass==false){<br \/>\n            var sError=&quot;\u6765\u6e90\u4e0d\u660e\uff0c\u8bf7\u60a8\u901a\u8fc7\u6388\u6743\u7f51\u7ad9\u8bbf\u95ee\u6211\u4eec.&quot;;<br \/>\n            alert(sError);<br \/>\n            location.href=&quot;about:blank&quot;;<br \/>\n            }<br \/>\n            } <br \/>\n            &lt;\/SCRIPT&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&middot; \u4fee\u6539&ldquo;\u5185\u5bb9\u9875\u9762&rdquo;\u7684\u533a\u57df\u5982\u4e0b\uff1a<\/p>\n<table cellspacing=\"0\" cellpadding=\"6\" width=\"95%\" align=\"center\" border=\"0\" style=\"border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted\">\n<tbody>\n<tr>\n<td bgcolor=\"#fdfddf\" style=\"word-wrap: break-word\"><font color=\"#ff0000\">\u4ee5\u4e0b\u4e3a\u5f15\u7528\u7684\u5185\u5bb9\uff1a<\/font><br \/>\n            &lt;BODY onload=&quot;fnLoad()&quot;&gt;<br \/>\n            &lt;DIV CLASS=userData ID=&quot;oPersistDiv&quot;&gt;&lt;\/DIV&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>***\u63d2\u5165\u4ee5\u4e0a\u4ee3\u7801\u7684\u9875\u9762\u9700\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u5939\u4e0b\uff0c\u5426\u5219\u4f1a\u51fa\u9519\u3002 <br \/>\n\u4ece\u4ee5\u4e0a\u8303\u4f8b\u53ef\u770b\u51fa\uff0c\u901a\u8fc7persistence\u7684\u4f7f\u7528\uff0c\u4f7f\u5f97\u666e\u901a\u7684\u9759\u6001\u5185\u5bb9\u9875\u9762\u5177\u6709\u4e86session\u529f\u80fd\uff0c\u4e00\u822c\u7684\u4e0d\u654f\u611f\u4fe1\u606f\u5b8c\u5168\u53ef\u4ee5\u901a\u8fc7session\u4fdd\u5b58\u5728\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u4f7f\u7528\u591a\u4e2a\u5e26\u6709session\u529f\u80fd\u7684\u9759\u6001\u9875\u9762\u53ef\u4ee5\u5b8c\u6210\u4f17\u591a\u590d\u6742\u4efb\u52a1\uff0c\u5982\u865a\u62df\u8d2d\u7269\u8f66\uff0c\u9ad8\u7ea7\u641c\u7d22\u5f15\u64ce\u7b49\u3002\u540c\u65f6\uff0c\u7531\u4e8e\u5c06\u4ee5\u524d\u670d\u52a1\u5668\u7aef\u627f\u62c5\u7684\u90e8\u5206session\u4efb\u52a1\u8f6c\u79fb\u5230\u5ba2\u6237\u7aef\uff0c\u51cf\u5c11\u4e86\u6570\u636e\u4ea4\u4e92\u91cf\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u670d\u52a1\u5668\u7684\u8d1f\u62c5\u3002<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4eca\u7684\u91c7\u96c6\u7cfb\u7edf\u662f\u4e00\u4e2a\u6bd4\u4e00\u4e2aNB\uff0c\u7ad9\u957f\u4eec\u8f9b\u82e6\u6536\u96c6\u5236\u4f5c\u7684\u7f51\u7ad9\u5185\u5bb9\u603b\u662f\u5f88\u5feb\u51fa\u73b0\u5728\u5728\u53e6\u4e00\u4e2a\u7f51\u7ad9\u4e0a\uff0c\u4e00\u4e2a\u7f51\u7ad9\u8f7b\u6613\u7684\u5c31\u88ab\u590d\u5236\u4e86\u53c8\u590d\u5236\u3002\u6709\u529e\u6cd5\u65e2\u4e0d\u5f71\u54cd\u641c\u7d22\u5f15\u64ce\u7684\u6b63\u5e38\u6536\u5165\u53c8\u80fd\u89e3\u51b3\u7f51\u7ad9\u88ab\u91c7\u96c6\u4e4b\u82e6\u4e48\uff1f\u7b54\u6848\u662f\u80af\u5b9a\u7684\u3002 \u6700\u5e38\u7528\u7684\u9632\u91c7\u96c6\u65b9\u6cd5\uff1a 1.\u6bcf\u4e2a\u6587\u7ae0\u7684\u547d\u540d\u4e0d\u8981&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-801","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=801"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/801\/revisions"}],"predecessor-version":[{"id":66648,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/801\/revisions\/66648"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=801"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=801"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}