{"id":167,"date":"2026-04-10T09:22:53","date_gmt":"2026-04-10T01:22:53","guid":{"rendered":"https:\/\/www.deartester.com\/index.php\/2026\/04\/10\/cookie%e3%80%81session%e3%80%81token-%e6%90%9e%e6%87%82%e8%bf%99%e4%b8%89%e4%b8%aa%ef%bc%8c%e6%b5%8b%e8%af%95%e5%b0%91%e8%b8%a9%e4%b8%80%e5%8d%8a%e5%9d%91\/"},"modified":"2026-04-10T09:22:53","modified_gmt":"2026-04-10T01:22:53","slug":"cookie%e3%80%81session%e3%80%81token-%e6%90%9e%e6%87%82%e8%bf%99%e4%b8%89%e4%b8%aa%ef%bc%8c%e6%b5%8b%e8%af%95%e5%b0%91%e8%b8%a9%e4%b8%80%e5%8d%8a%e5%9d%91","status":"publish","type":"post","link":"https:\/\/www.deartester.com\/index.php\/2026\/04\/10\/cookie%e3%80%81session%e3%80%81token-%e6%90%9e%e6%87%82%e8%bf%99%e4%b8%89%e4%b8%aa%ef%bc%8c%e6%b5%8b%e8%af%95%e5%b0%91%e8%b8%a9%e4%b8%80%e5%8d%8a%e5%9d%91\/","title":{"rendered":"Cookie\u3001Session\u3001Token\u2014\u2014\u641e\u61c2\u8fd9\u4e09\u4e2a\uff0c\u6d4b\u8bd5\u5c11\u8e29\u4e00\u534a\u5751"},"content":{"rendered":"<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u505aWeb\u6d4b\u8bd5\uff0c\u5c24\u5176\u662f\u63a5\u53e3\u6d4b\u8bd5\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u9274\u6743\u76f8\u5173\u7684\u95ee\u9898\uff1a<\/span><\/p>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">&#8220;\u4e3a\u4ec0\u4e48\u6211\u767b\u5f55\u4e86\uff0c\u63a5\u53e3\u8fd8\u662f\u8fd4\u56de401\uff1f&#8221;<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">&#8220;Token\u8fc7\u671f\u4e86\u600e\u4e48\u529e\uff1f&#8221;<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">&#8220;Cookie\u548cToken\u6709\u4ec0\u4e48\u533a\u522b\uff1f&#8221;<\/span><\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u4e9b\u95ee\u9898\uff0c\u90fd\u7ed5\u4e0d\u5f00\u4e09\u4e2a\u6838\u5fc3\u6982\u5ff5\uff1a<\/span><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><span leaf=\"\">Cookie\u3001Session\u3001Token<\/span><\/strong><span leaf=\"\">\u3002\u8fd9\u7bc7\u6587\u7ae0\uff0c\u6211\u6765\u7528\u6700\u901a\u4fd7\u7684\u65b9\u5f0f\u8bb2\u6e05\u695a\u5b83\u4eec\u3002<\/span><\/p>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u4e00\u3001\u5148\u7406\u89e3\u95ee\u9898\uff1aWeb\u5e94\u7528\u5982\u4f55&#8221;\u8bb0\u4f4f&#8221;\u7528\u6237\uff1f<\/span><\/span><\/h2>\n<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">HTTP\u534f\u8bae\u6709\u4e00\u4e2a\u7279\u70b9\uff1a<\/span><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><span leaf=\"\">\u65e0\u72b6\u6001<\/span><\/strong><span leaf=\"\">\u3002\u670d\u52a1\u5668\u6536\u5230\u8bf7\u6c42\uff0c\u5904\u7406\u5b8c\u5c31\u5fd8\u4e86\uff0c\u4e0d\u4f1a\u8bb0\u4f4f&#8221;\u521a\u624d\u8c01\u6765\u8fc7&#8221;\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u4f46Web\u5e94\u7528\u9700\u8981&#8221;\u8bb0\u4f4f&#8221;\u7528\u6237\uff0c\u6bd4\u5982\uff1a<\/span><\/p>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u7528\u6237\u767b\u5f55\u540e\uff0c\u5237\u65b0\u9875\u9762\u8fd8\u662f\u767b\u5f55\u72b6\u6001<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u8d2d\u7269\u8f66\u7684\u5546\u54c1\uff0c\u5237\u65b0\u540e\u8fd8\u5728<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u7528\u6237\u7684\u4e2a\u6027\u5316\u8bbe\u7f6e\uff0c\u4e0b\u6b21\u8bbf\u95ee\u8fd8\u751f\u6548<\/span><\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u5c31\u9700\u8981\u4e00\u4e2a\u673a\u5236\uff0c\u8ba9\u670d\u52a1\u5668\u80fd&#8221;\u8ba4\u51fa&#8221;\u7528\u6237\u3002Cookie\u3001Session\u3001Token\uff0c\u5c31\u662f\u4e09\u79cd\u4e0d\u540c\u7684&#8221;\u8ba4\u4eba&#8221;\u65b9\u5f0f\u3002<\/span><\/p>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u4e8c\u3001Cookie\uff1a\u670d\u52a1\u5668\u7ed9\u5ba2\u6237\u7aef\u53d1\u7684&#8221;\u8eab\u4efd\u8bc1&#8221;<\/span><\/span><\/h2>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\" data-pm-slice=\"2 2 []\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u4ec0\u4e48\u662fCookie\uff1f<\/span><\/span><\/h4>\n<p><span leaf=\"\">Cookie\u662f\u670d\u52a1\u5668\u53d1\u9001\u7ed9\u6d4f\u89c8\u5668\u7684\u4e00\u5c0f\u6bb5\u6570\u636e\uff0c\u6d4f\u89c8\u5668\u4f1a\u4fdd\u5b58\u8d77\u6765\uff0c\u4e0b\u6b21\u8bf7\u6c42\u65f6\u81ea\u52a8\u5e26\u4e0a\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\" data-pm-slice=\"2 2 []\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u5de5\u4f5c\u6d41\u7a0b\uff1a<\/span><\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2460 \u7528\u6237\u9996\u6b21\u8bbf\u95ee\u7f51\u7ad9<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2461 \u670d\u52a1\u5668\u54cd\u5e94\u5934\u4e2d\u8bbe\u7f6e\uff1a<\/span><code style=\"margin: 0px;padding: 2px 6px;box-sizing: border-box;background: rgb(244, 244, 244);border-radius: 3px;font-family: Consolas, Monaco, monospace;font-size: 13px;\"><span leaf=\"\">Set-Cookie: userId=123<\/span><\/code><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2462 \u6d4f\u89c8\u5668\u4fdd\u5b58\u8fd9\u4e2aCookie<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2463 \u7528\u6237\u518d\u6b21\u8bf7\u6c42\u65f6\uff0c\u6d4f\u89c8\u5668\u81ea\u52a8\u5e26\u4e0a\uff1a<\/span><code style=\"margin: 0px;padding: 2px 6px;box-sizing: border-box;background: rgb(244, 244, 244);border-radius: 3px;font-family: Consolas, Monaco, monospace;font-size: 13px;\"><span leaf=\"\">Cookie: userId=123<\/span><\/code><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2464 \u670d\u52a1\u5668\u6839\u636eCookie\u8bc6\u522b\u7528\u6237<\/span><\/h4>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\"><span leaf=\"\">Cookie\u7684\u7279\u70b9\uff1a<\/span><\/h4>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u5b58\u50a8\u5728\u6d4f\u89c8\u5668\u7aef\uff08\u5ba2\u6237\u7aef\uff09<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u6bcf\u6b21\u8bf7\u6c42\u81ea\u52a8\u5e26\u4e0a\uff0c\u65e0\u9700\u624b\u52a8\u5904\u7406<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u6709\u5927\u5c0f\u9650\u5236\uff08\u7ea64KB\uff09<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u53ef\u4ee5\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4\u3001\u4f5c\u7528\u57df\u3001\u5b89\u5168\u5c5e\u6027<\/span><\/section>\n<\/li>\n<\/ul>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u4e09\u3001Session\uff1a\u670d\u52a1\u5668\u7aef\u7684&#8221;\u6863\u6848\u67dc&#8221;<\/span><\/span><\/h2>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\" data-pm-slice=\"2 2 []\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u4ec0\u4e48\u662fSession\uff1f<\/span><\/span><\/h4>\n<p><span leaf=\"\">Session\u662f\u670d\u52a1\u5668\u7aef\u5b58\u50a8\u7684\u7528\u6237\u4f1a\u8bdd\u6570\u636e\u3002\u670d\u52a1\u5668\u7ed9\u6bcf\u4e2a\u4f1a\u8bdd\u5206\u914d\u4e00\u4e2aID\uff08Session ID\uff09\uff0c\u901a\u8fc7Cookie\u4f20\u7ed9\u5ba2\u6237\u7aef\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\" data-pm-slice=\"2 2 []\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u5de5\u4f5c\u6d41\u7a0b\uff1a<\/span><\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2460 \u7528\u6237\u767b\u5f55\u6210\u529f<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2461 \u670d\u52a1\u5668\u521b\u5efaSession\uff0c\u5b58\u50a8\u7528\u6237\u4fe1\u606f\uff08\u5982userId=123, role=admin\uff09<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2462 \u670d\u52a1\u5668\u751f\u6210Session ID\uff1aabc123<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2463 \u670d\u52a1\u5668\u901a\u8fc7Cookie\u628aSession ID\u53d1\u7ed9\u5ba2\u6237\u7aef\uff1a<\/span><code style=\"margin: 0px;padding: 2px 6px;box-sizing: border-box;background: rgb(244, 244, 244);border-radius: 3px;font-family: Consolas, Monaco, monospace;font-size: 13px;\"><span leaf=\"\">Set-Cookie: sessionId=abc123<\/span><\/code><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2464 \u540e\u7eed\u8bf7\u6c42\u65f6\uff0c\u5ba2\u6237\u7aef\u5e26\u4e0aCookie\uff0c\u670d\u52a1\u5668\u6839\u636eSession ID\u627e\u5230\u5bf9\u5e94\u7684Session\u6570\u636e<\/span><\/h4>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\"><span leaf=\"\">Session\u7684\u7279\u70b9\uff1a<\/span><\/h4>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u6570\u636e\u5b58\u50a8\u5728\u670d\u52a1\u5668\u7aef\uff0c\u76f8\u5bf9\u5b89\u5168<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u4f9d\u8d56Cookie\u4f20\u9012Session ID<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u670d\u52a1\u5668\u9700\u8981\u5b58\u50a8\u6240\u6709Session\uff0c\u6709\u5185\u5b58\u538b\u529b<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u591a\u670d\u52a1\u5668\u96c6\u7fa4\u65f6\uff0c\u9700\u8981Session\u5171\u4eab\u673a\u5236<\/span><\/section>\n<\/li>\n<\/ul>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u56db\u3001Token\uff1a\u81ea\u5305\u542b\u7684&#8221;\u901a\u884c\u8bc1&#8221;<\/span><\/span><\/h2>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\" data-pm-slice=\"2 2 []\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u4ec0\u4e48\u662fToken\uff1f<\/span><\/span><\/h4>\n<p><span leaf=\"\">Token\u662f\u4e00\u4e2a\u81ea\u5305\u542b\u7684\u51ed\u8bc1\uff0c\u672c\u8eab\u643a\u5e26\u4e86\u7528\u6237\u4fe1\u606f\uff0c\u4e0d\u9700\u8981\u670d\u52a1\u5668\u7aef\u5b58\u50a8\u3002\u6700\u5e38\u7528\u7684\u662fJWT\uff08JSON Web Token\uff09\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<p data-pm-slice=\"3 2 []\"><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u5de5\u4f5c\u6d41\u7a0b\uff1a<\/span><\/span><\/strong><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2460 \u7528\u6237\u767b\u5f55\u6210\u529f<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2461 \u670d\u52a1\u5668\u751f\u6210Token\uff0c\u5305\u542b\u7528\u6237\u4fe1\u606f\u5e76\u52a0\u5bc6\u7b7e\u540d<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2462 \u670d\u52a1\u5668\u8fd4\u56deToken\u7ed9\u5ba2\u6237\u7aef<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2463 \u5ba2\u6237\u7aef\u4fdd\u5b58Token\uff08\u901a\u5e38\u653e\u5728localStorage\u6216Header\u4e2d\uff09<\/span><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2464 \u540e\u7eed\u8bf7\u6c42\u65f6\uff0c\u5ba2\u6237\u7aef\u5728Header\u4e2d\u5e26\u4e0a\uff1a<\/span><code style=\"margin: 0px;padding: 2px 6px;box-sizing: border-box;background: rgb(244, 244, 244);border-radius: 3px;font-family: Consolas, Monaco, monospace;font-size: 13px;\"><span leaf=\"\">Authorization: Bearer xxx<\/span><\/code><span leaf=\"\"><br  \/><\/span><span leaf=\"\">\u2465 \u670d\u52a1\u5668\u9a8c\u8bc1\u7b7e\u540d\uff0c\u89e3\u6790\u51fa\u7528\u6237\u4fe1\u606f<\/span><\/p>\n<section><span leaf=\"\"><br  \/><\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"margin: 0px 0px 10px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);font-size: 17px;\"><span leaf=\"\">Token\u7684\u7279\u70b9\uff1a<\/span><\/h4>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u81ea\u5305\u542b\uff1aToken\u672c\u8eab\u643a\u5e26\u7528\u6237\u4fe1\u606f\uff0c\u670d\u52a1\u5668\u65e0\u9700\u5b58\u50a8<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u8de8\u57df\u53cb\u597d\uff1a\u4e0d\u4f9d\u8d56Cookie\uff0c\u9002\u5408\u524d\u540e\u7aef\u5206\u79bb\u3001\u79fb\u52a8\u7aef<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u65e0\u72b6\u6001\uff1a\u670d\u52a1\u5668\u4e0d\u9700\u8981\u7ef4\u62a4Session\uff0c\u6613\u4e8e\u6269\u5c55<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u6709\u8fc7\u671f\u65f6\u95f4\uff0c\u9700\u8981\u5237\u65b0\u673a\u5236<\/span><\/section>\n<\/li>\n<\/ul>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u4e94\u3001\u4e09\u8005\u5bf9\u6bd4\uff1a\u4e00\u5f20\u8868\u770b\u660e\u767d<\/span><\/span><\/h2>\n<table style=\"margin: 15px 0px;padding: 0px;box-sizing: border-box;width: 760px;border-collapse: collapse;font-size: 14px;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\">\n<tbody>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;\">\n<th style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;background: rgb(248, 249, 250);font-weight: 600;color: rgb(44, 62, 80);\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(64, 118, 0);font-weight: bold;\">\u7ef4\u5ea6<\/span><\/span><\/section>\n<\/th>\n<th style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;background: rgb(248, 249, 250);font-weight: 600;color: rgb(44, 62, 80);\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(64, 118, 0);font-weight: bold;\">Cookie<\/span><\/span><\/section>\n<\/th>\n<th style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;background: rgb(248, 249, 250);font-weight: 600;color: rgb(44, 62, 80);\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(64, 118, 0);font-weight: bold;\">Session<\/span><\/span><\/section>\n<\/th>\n<th style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;background: rgb(248, 249, 250);font-weight: 600;color: rgb(44, 62, 80);\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(64, 118, 0);font-weight: bold;\">Token<\/span><\/span><\/section>\n<\/th>\n<\/tr>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;background: rgb(250, 250, 250);\">\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u5b58\u50a8\u4f4d\u7f6e<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u5ba2\u6237\u7aef\uff08\u6d4f\u89c8\u5668\uff09<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u670d\u52a1\u5668\u7aef<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u5ba2\u6237\u7aef\uff08\u4f46\u6570\u636e\u52a0\u5bc6\uff09<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;\">\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u5b89\u5168\u6027<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u8f83\u4f4e\uff08\u53ef\u88ab\u7be1\u6539\uff09<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u8f83\u9ad8\uff08\u6570\u636e\u5728\u670d\u52a1\u5668\uff09<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u8f83\u9ad8\uff08\u7b7e\u540d\u9632\u7be1\u6539\uff09<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;background: rgb(250, 250, 250);\">\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u670d\u52a1\u5668\u538b\u529b<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u65e0<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u6709\uff08\u9700\u5b58\u50a8Session\uff09<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u65e0<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;\">\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u8de8\u57df\u652f\u6301<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u53d7\u9650\uff08\u540c\u6e90\u7b56\u7565\uff09<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u53d7\u9650<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u597d<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;background: rgb(250, 250, 250);\">\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u79fb\u52a8\u7aef\u652f\u6301<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u4e00\u822c<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u4e00\u822c<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u597d<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"margin: 0px;padding: 0px;box-sizing: border-box;\">\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u96c6\u7fa4\u6269\u5c55<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u7b80\u5355<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u9700Session\u5171\u4eab<\/span><\/section>\n<\/td>\n<td style=\"margin: 0px;padding: 10px 12px;box-sizing: border-box;border: 1px solid rgb(224, 224, 224);text-align: left;\">\n<section><span leaf=\"\">\u7b80\u5355<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u516d\u3001\u6d4b\u8bd5\u4e2d\u5982\u4f55\u5e94\u7528<\/span><\/span><\/h2>\n<h4 style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(255, 169, 0);font-weight: bold;\">\u57fa\u4e8eCookie\/Session\u7684\u6d4b\u8bd5\u8981\u70b9<\/span><\/span><\/h4>\n<ul style=\"margin: 15px 0px;padding: 0px;box-sizing: border-box;list-style: none;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 \u767b\u5f55\u540e\u68c0\u67e5Cookie\u662f\u5426\u6b63\u786e\u8bbe\u7f6e\uff08\u540d\u79f0\u3001\u503c\u3001\u8fc7\u671f\u65f6\u95f4\u3001HttpOnly\u5c5e\u6027\uff09<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 \u6e05\u9664Cookie\u540e\uff0c\u8bbf\u95ee\u9700\u8981\u767b\u5f55\u7684\u9875\u9762\uff0c\u5e94\u8df3\u8f6c\u5230\u767b\u5f55\u9875<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 Session\u8fc7\u671f\u540e\uff0c\u64cd\u4f5c\u5e94\u63d0\u793a\u91cd\u65b0\u767b\u5f55<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 \u540c\u4e00\u8d26\u53f7\u591a\u8bbe\u5907\u767b\u5f55\uff0cSession\u5904\u7406\u662f\u5426\u6b63\u786e<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: none;\">\n<section><span leaf=\"\">\u2713 \u9000\u51fa\u767b\u5f55\uff0c\u68c0\u67e5Cookie\u662f\u5426\u6e05\u9664\u3001Session\u662f\u5426\u5931\u6548<\/span><\/section>\n<\/li>\n<\/ul>\n<h4 style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;color: rgb(44, 62, 80);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(255, 169, 0);font-weight: bold;\">\u57fa\u4e8eToken\u7684\u6d4b\u8bd5\u8981\u70b9<\/span><\/span><\/h4>\n<ul style=\"margin: 15px 0px;padding: 0px;box-sizing: border-box;list-style: none;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 \u767b\u5f55\u63a5\u53e3\u8fd4\u56deToken\uff0c\u68c0\u67e5Token\u683c\u5f0f\u548c\u5185\u5bb9<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 \u540e\u7eed\u8bf7\u6c42\u5728Header\u4e2d\u5e26\u4e0aToken\uff1a<\/span><code style=\"margin: 0px;padding: 2px 6px;box-sizing: border-box;background: rgb(244, 244, 244);border-radius: 3px;font-family: Consolas, Monaco, monospace;font-size: 13px;\"><span leaf=\"\">Authorization: Bearer {token}<\/span><\/code><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 Token\u8fc7\u671f\u540e\uff0c\u63a5\u53e3\u8fd4\u56de401\uff0c\u63d0\u793a\u91cd\u65b0\u767b\u5f55<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 Token\u9519\u8bef\u6216\u88ab\u7be1\u6539\uff0c\u63a5\u53e3\u8fd4\u56de401<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: 1px dashed rgb(221, 221, 221);\">\n<section><span leaf=\"\">\u2713 \u5237\u65b0Token\u673a\u5236\u662f\u5426\u6b63\u5e38<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 8px 0px;box-sizing: border-box;border-bottom: none;\">\n<section><span leaf=\"\">\u2713 \u9000\u51fa\u767b\u5f55\uff0cToken\u662f\u5426\u5931\u6548<\/span><\/section>\n<\/li>\n<\/ul>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u67e5<\/span><\/span><\/h2>\n<p><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(211, 84, 0);\"><span leaf=\"\">\u95ee\u98981\uff1a\u63a5\u53e3\u8fd4\u56de401\uff0c\u4f46\u6211\u5df2\u7ecf\u767b\u5f55\u4e86<\/span><\/strong><span leaf=\"\"><br  \/><\/span><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(211, 84, 0);\"><span leaf=\"\">\u6392\u67e5\uff1a<\/span><\/strong><\/p>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5\u8bf7\u6c42\u662f\u5426\u5e26\u4e86Token\/Cookie<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5Token\u662f\u5426\u8fc7\u671f<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5Token\u683c\u5f0f\u662f\u5426\u6b63\u786e\uff08Bearer\u524d\u7f00\u3001\u7f16\u7801\u95ee\u9898\uff09<\/span><\/section>\n<\/li>\n<\/ul>\n<section><span leaf=\"\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/section>\n<p><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(211, 84, 0);\"><span leaf=\"\">\u95ee\u98982\uff1a\u767b\u5f55\u540e\u5237\u65b0\u9875\u9762\u53d8\u6210\u672a\u767b\u5f55<\/span><\/strong><span leaf=\"\"><br  \/><\/span><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(211, 84, 0);\"><span leaf=\"\">\u6392\u67e5\uff1a<\/span><\/strong><\/p>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5Token\u662f\u5426\u6b63\u786e\u4fdd\u5b58\uff08localStorage vs sessionStorage\uff09<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5\u9875\u9762\u52a0\u8f7d\u65f6\u662f\u5426\u6b63\u786e\u8bfb\u53d6Token<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5Cookie\u662f\u5426\u8bbe\u7f6e\u4e86\u6b63\u786e\u7684\u8fc7\u671f\u65f6\u95f4<\/span><\/section>\n<\/li>\n<\/ul>\n<section>\n<section><span leaf=\"\" data-pm-slice=\"1 1 [&quot;para&quot;,null]\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/section>\n<\/section>\n<p><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(211, 84, 0);\"><span leaf=\"\">\u95ee\u98983\uff1a\u8de8\u57df\u8bf7\u6c42\u5e26\u4e0aCookie\u5931\u8d25<\/span><\/strong><span leaf=\"\"><br  \/><\/span><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(211, 84, 0);\"><span leaf=\"\">\u6392\u67e5\uff1a<\/span><\/strong><\/p>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u4e86<\/span><code style=\"margin: 0px;padding: 2px 6px;box-sizing: border-box;background: rgb(244, 244, 244);border-radius: 3px;font-family: Consolas, Monaco, monospace;font-size: 13px;\"><span leaf=\"\">withCredentials: true<\/span><\/code><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u8fd4\u56de\u4e86\u6b63\u786e\u7684CORS\u5934<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u8003\u8651\u6539\u7528Token\u65b9\u5f0f\uff0c\u907f\u514d\u8de8\u57dfCookie\u95ee\u9898<\/span><\/section>\n<\/li>\n<\/ul>\n<section>\n<section><span leaf=\"\" data-pm-slice=\"1 1 [&quot;para&quot;,null]\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/section>\n<\/section>\n<h2 style=\"margin: 30px 0px 15px;padding: 0px 0px 0px 12px;box-sizing: border-box;font-size: 20px;color: rgb(44, 62, 80);border-left: 4px solid rgb(52, 152, 219);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u516b\u3001\u5199\u5728\u6700\u540e<\/span><\/span><\/h2>\n<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">Cookie\u3001Session\u3001Token\uff0c\u672c\u8d28\u90fd\u662f\u89e3\u51b3\u540c\u4e00\u4e2a\u95ee\u9898\uff1a<\/span><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><span leaf=\"\">\u8ba9\u670d\u52a1\u5668\u80fd\u8bc6\u522b\u7528\u6237<\/span><\/strong><span leaf=\"\">\u3002\u53ea\u662f\u5b9e\u73b0\u65b9\u5f0f\u4e0d\u540c\uff1a<\/span><\/p>\n<ul style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">Cookie\u662f&#8221;\u8eab\u4efd\u8bc1&#8221;\uff0c\u6bcf\u6b21\u90fd\u51fa\u793a<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">Session\u662f&#8221;\u6863\u6848\u53f7&#8221;\uff0c\u670d\u52a1\u5668\u6839\u636e\u53f7\u7801\u67e5\u6863\u6848<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">Token\u662f&#8221;\u901a\u884c\u8bc1&#8221;\uff0c\u672c\u8eab\u5c31\u6709\u6743\u9650\u4fe1\u606f<\/span><\/section>\n<\/li>\n<\/ul>\n<section>\n<section><span leaf=\"\" data-pm-slice=\"1 1 [&quot;para&quot;,null]\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/section>\n<\/section>\n<p style=\"margin: 0px 0px 15px;padding: 0px;box-sizing: border-box;text-align: justify;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u4f5c\u4e3a\u6d4b\u8bd5\u5de5\u7a0b\u5e08\uff0c\u4e0d\u9700\u8981\u6df1\u5165\u7406\u89e3\u5b83\u4eec\u7684\u6280\u672f\u5b9e\u73b0\uff0c\u4f46\u9700\u8981\u77e5\u9053\uff1a<\/span><\/p>\n<ol style=\"margin: 15px 0px 15px 25px;padding: 0px;box-sizing: border-box;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u7cfb\u7edf\u7528\u7684\u662f\u54ea\u79cd\u65b9\u5f0f<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u6d4b\u8bd5\u65f6\u5982\u4f55\u6a21\u62df\u767b\u5f55\u72b6\u6001<\/span><\/section>\n<\/li>\n<li style=\"margin: 0px 0px 8px;padding: 0px;box-sizing: border-box;\">\n<section><span leaf=\"\">\u9274\u6743\u5931\u8d25\u65f6\u5982\u4f55\u6392\u67e5<\/span><\/section>\n<\/li>\n<\/ol>\n<section><span leaf=\"\"><br  \/><\/span><\/section>\n<p><strong style=\"margin: 0px;padding: 0px;box-sizing: border-box;color: rgb(39, 174, 96);\"><span leaf=\"\">\u603b\u7ed3\uff1a<\/span><\/strong><span leaf=\"\">\u641e\u61c2Cookie\u3001Session\u3001Token\uff0cWeb\u6d4b\u8bd5\u4e2d\u7684\u9274\u6743\u95ee\u9898\u5c31\u89e3\u51b3\u4e86\u4e00\u5927\u534a\u3002\u4e0b\u6b21\u9047\u5230401\uff0c\u522b\u614c\uff0c\u6309\u8fd9\u7bc7\u6587\u7ae0\u7684\u601d\u8def\u6392\u67e5\u3002<\/span><\/p>\n<section><span leaf=\"\"><br  \/><\/span><\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505aWeb\u6d4b\u8bd5\uff0c\u5c24\u5176\u662f\u63a5\u53e3\u6d4b\u8bd5\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u9274\u6743\u76f8\u5173\u7684\u95ee\u9898\uff1a &#8220;\u4e3a\u4ec0\u4e48\u6211\u767b\u5f55\u4e86\uff0c\u63a5\u53e3\u8fd8\u662f\u8fd4\u56de401\uff1f&#038; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":166,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-auto-tools"],"_links":{"self":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/media\/166"}],"wp:attachment":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}