{"id":61,"date":"2013-12-01T02:51:20","date_gmt":"2013-11-30T18:51:20","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/12\/01\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e4%b9%9d%e5%a4%a9\/"},"modified":"2013-12-01T02:51:20","modified_gmt":"2013-11-30T18:51:20","slug":"%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e4%b9%9d%e5%a4%a9","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/12\/01\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aasp%e4%b9%8b%e7%ac%ac%e4%b9%9d%e5%a4%a9\/","title":{"rendered":"\u5341\u5929\u5b66\u4f1aASP\u4e4b\u7b2c\u4e5d\u5929"},"content":{"rendered":"<p><span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5b66\u4e60\u76ee\u7684\uff1a\u57fa\u672c\u7684SESSION\u7ec4\u4ef6\uff0c\u603b\u7ed3response\uff0crequest\u7ec4\u4ef6\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&nbsp;&nbsp;&nbsp; \u9996\u5148\uff0c\u6709\u4f1a\u5458\u7cfb\u7edf\u7684\u4efb\u4f55\u7a0b\u5e8f\u90fd\u4f1a\u7528\u5230\u68c0\u6d4b\u662f\u4e0d\u662f\u7528\u6237\u5df2\u7ecf\u767b\u9646\u8fd9\u4e2a\u6b65\u9aa4\u3002\u8fd9\u5c31\u7528\u5230\u4e86SESSION\u7ec4\u4ef6\uff0c\u4e0b\u9762\u6211\u4eec&nbsp;&nbsp;&nbsp; \u770b\u4e00\u4e2a\u4ee3\u7801\u6765\u8bf4\u660e\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;%<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">session(&#8220;islogin&#8221;)=&#8221;yes&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">%&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u8fd9\u53e5\u8bdd\u7684\u610f\u601d\u5c31\u662f\u5728session\u91cc\u9762\u5b9a\u4e49\u4e00\u4e2aislogin\u5b57\u7b26\u4e32\u53d8\u91cf\uff0c\u503c\u4e3a&#8221;yes&#8221;\uff0c\u76f4\u63a5\u53ef\u4ee5\u8d4b\u503c\uff0c\u4e0d\u9700\u8981\u58f0\u660e\u3002\u662f\u4e0d\u662f\u5f88\u7b80\u5355\uff1f<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5982\u679c\u6211\u4eec\u505a\u7ba1\u7406\u5458\u767b\u9646\u7cfb\u7edf\u7684\u8bdd\uff0c\u9996\u5148\u662f\u4e00\u6bb5\u68c0\u6d4b\u662f\u4e0d\u662f\u7ba1\u7406\u5458<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">if \u662f then&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">session(&#8220;isadmin&#8221;)=yes&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">else&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">session(&#8220;isadmin&#8221;)=&#8221;no&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">end if<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u5728\u6bcf\u4e00\u4e2a\u9700\u8981\u7ba1\u7406\u5458\u624d\u80fd\u770b\u7684\u9875\u9762\u6700\u524d\u9762\u52a0\u4e0a<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&lt;%<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">if not session(&#8220;isaadmin&#8221;)=&#8221;yes&#8221;then<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">response.redirect &#8220;login.htm&#8221;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">%&gt;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u8fd9\u6837\u4e00\u822c\u7528\u6237\u5c31\u65e0\u6cd5\u6253\u5f00\u8fd9\u4e2a\u9875\u9762\u3002\u89e3\u91ca\u4e00\u4e0bresponse.redirect\uff0c\u5b83\u662f\u8f6c\u5411\u7684\u610f\u601d\uff0c\u540e\u9762\u7684&#8221;login.htm&#8221;\u5c31\u662f\u8f6c\u5411\u7684\u6587\u4ef6\u3002\u8fd9\u6837\u6ca1\u6709\u767b\u9646\u7684\u7ba1\u7406\u5458\u662f\u65e0\u6cd5\u770b\u5230\u540e\u9762\u7684\u5185\u5bb9\u7684\u3002<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">&nbsp;&nbsp;&nbsp; \u4e0b\u9762\u603b\u7ed3\u4e00\u4e0b<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">response\u7ec4\u4ef6\u57fa\u672c\u5c31\u662f\u7528\u5230response.write ()\uff0cresponse.redirect() \u5206\u522b\u662f\u5199\u5b57\u7b26\u4e32\u548c\u8f6c\u5411\u7684\u4f5c\u7528<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">request\u57fa\u672c\u5c31\u662frequest.form()\uff0crequest.querystring() \u5206\u522b\u662f\u63a5\u53d7post,get\u65b9\u6cd5\u4f20\u6765\u7684\u4fe1\u606f&nbsp;<\/span><br style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\" \/><br \/>\n<span style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;background-color:#FBFBFB;\">\u4eca\u5929\u5c31\u8bf4\u5230\u8fd9\u91cc\u4e86\uff0c\u6700\u540e\u6211\u7684\u793a\u8303\u662f\u4e00\u4e2a\u767b\u9646\u7cfb\u7edf\u5927\u5bb6\u53ef\u4ee5\u7814\u7a76\u4e00\u4e0b\uff0c\u57fa\u672c\u5c31\u662f\u4e0a\u9762\u7684\u77e5\u8bc6\u70b9\u6bd4\u8f83\u7b80\u5355\u7684\u3002<\/span><\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u7684\uff1a\u57fa\u672c\u7684SESSION\u7ec4\u4ef6\uff0c\u603b\u7ed3response\uff0crequest\u7ec4\u4ef6\u3002 &nbsp;&nbsp;&nbsp; \u9996\u5148\uff0c\u6709\u4f1a\u5458\u7cfb\u7edf\u7684\u4efb\u4f55\u7a0b\u5e8f\u90fd\u4f1a\u7528\u5230\u68c0\u6d4b\u662f\u4e0d\u662f\u7528\u6237\u5df2\u7ecf\u767b\u9646\u8fd9\u4e2a\u6b65\u9aa4\u3002\u8fd9\u5c31\u7528\u5230\u4e86SESSION\u7ec4\u4ef6\uff0c\u4e0b\u9762\u6211\u4eec&nbsp;&nbsp;&nbsp; \u770b\u4e00\u4e2a\u4ee3\u7801\u6765\u8bf4\u660e\u3002 &lt;% session(&#8220;islogin&#8221;)=&#8221;yes&#8221; %&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}