2007年5月23日

           Request.Cookies,例子:

          <TABLE BORDER="2">
          <THEAD>
          <TH>Cookie Name</TH>
          <TH>Cookie Value</TH>
          <TH>Cookie HasKeys</TH>
          </THEAD>
          <%
          Dim Item
          For Each Item in Request.Cookies
          %>
          <TR>
          <TD><% = Item %></TD>
          <TD><% = Request.Cookies(Item) %></TD>
          <TD><% = Request.Cookies(Item).HasKeys %></TD>
          </TR>
          <TR>
          <%
          If Request.Cookies(Item).HasKeys Then
          For Each strSubKey In Request.Cookies(Item)
          %>
          <TD>&bnsp;</TD>
          <TD>&bnsp;</TD>
          <TD><% = Request.Cookies(strKey)(strSubKey) %></TD>
          <%
          Next
          End If
          Next
          %>
          </TABLE>

          request.ServerVariables("HTTP_COOKIE"),粒子:
          <TABLE BORDER="2">
          <THEAD>
          <TH>Cookie Name</TH>
          <TH>Cookie Value</TH>
          </THEAD>
          <%
          Dim Item,sp,i,d
          sp = split(request.ServerVariables("HTTP_COOKIE"),"; ",-1,1)
          ' Loop through the cookie collection displaying each cookie we find

          For i=0 to UBound(sp)
          d = split(cstr(sp(i)),"=",-1,1)
          %>
          <TR>
          <TD><% = d(0) %></TD>
          <TD><% if UBound(d)=1 then Response.Write(d(1)) else Response.Write " " %></TD>
          </TR>
          <%
          Next
          %>
          </TABLE>

          posted @ 2007-05-23 23:33 肥叔 閱讀(119) | 評論 (0)編輯 收藏

          僅列出標題  
          主站蜘蛛池模板: 繁昌县| 嵩明县| 时尚| 小金县| 武陟县| 峨边| 庆安县| 紫金县| 佛学| 保定市| 吉水县| 郯城县| 田林县| 临城县| 嵊州市| 容城县| 松阳县| 彭州市| 恭城| 自治县| 宁强县| 万源市| 宜兴市| 突泉县| 米易县| 阿巴嘎旗| 怀来县| 台北市| 南澳县| 罗城| 洞头县| 龙里县| 延庆县| 厦门市| 海口市| 陇川县| 宽城| 永昌县| 门头沟区| 运城市| 兴城市|