91久久久久久久久_欧美日韩中文_在线观看中文字幕亚洲_夜夜骑首页_精品久久伊人_天天色天天射天天操

當前位置:首頁文章首頁 IT學院 IT技術

關于使用Cookie來跟蹤用戶的實例

作者:  來源:  發布時間:2011-5-31 9:40:06  點擊:

學習ASP程序設計的朋友可以進來看看,這是關于使用Cookie來跟蹤用戶的實例,希望對大家有所幫助。

Source Code:
  
  
  
  <%
  
  '*** Keeping track of how many times
  '*** a user visits a web page, by
  '*** reading and writing cookies.
  
  '*** In this example "asphole" will be
  '*** the name of our cookie, and
  '*** "totalvisit" will be the 'key'
  '*** value we keep track of. You can
  '*** have multiple 'keys' for each
  '*** cookie.
  
  '*** Declare your variables
  Dim NumVisit
  
  '*** Check to see how many times they
  '*** have been to your web page.
  NumVisit = Request.Cookies("asphole")("totalvisit")
  
  '*** If this is their first visit to
  '*** the page NumVisit is blank, so
  '*** make the value of NumVisit 0.
  If NumVisit = "" Then
  NumVisit = 0
  End If
  
  '*** Display how many times they have
  '*** visited your web page.
  Response.Write "Visits to this page: " & NumVisit
  
  '*** Count the visit to the web page
  NumVisit = NumVisit + 1
  
  '*** Write the new total back to
  '*** the cookie in their browser
  Response.Cookies("asphole")("totalvisit") = NumVisit
  
  '*** Specify when the cookie expires.
  '*** If you don't, the cookie will
  '*** expire when the user closes their
  '*** browser, and you'll lose all info.
  Response.Cookies("asphole").Expires = "January 1, 2020"
  
  %> 
  -END-

文章評論

軟件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
主站蜘蛛池模板: 国产成人精品亚洲男人的天堂 | 中文久久久 | 国产一级在线观看 | 国产成人精品一区二区三区在线观看 | 我要操网站 | a级片在线免费观看 | 日韩欧美国产成人 | av黄色在线观看 | 91青青| 一区二区三区成人 | 亚洲777 | 中文字幕在线资源 | 久久精品视频一区二区 | www.久久爱 | 成人免费视频网站在线观看 | 国产乱码一区二区三区 | 四虎在线播放 | 日韩一级片视频 | 久久亚洲天堂 | 日韩精品综合 | 黄色综合网 | 国产一级在线视频 | 蜜桃成人av | 国产三级成人 | 欧美视频一区二区 | 国产精品毛片一区视频播 | 欧美久久久久久久久久 | 手机av在线播放 | 日韩免费小视频 | 天天搞天天搞 | 91在线播放视频 | 麻豆黄色片 | 欧美二区三区 | 欧美在线视频观看 | 日韩视频免费在线观看 | 国产福利91精品一区二区三区 | 91久久国产综合久久91精品网站 | 在线h片 | 欧美中文字幕在线观看 | 日韩免费一区二区三区 | 毛片av在线|