3wt.ezer.com 9/7/2010 11:55:27 AM 3wt.ezer.com:ASP:request cookies:學習 asp sql html code 繁體中文 w3 Learning

domain .tw idv.tw .com.tw
你正在閱覽 :: 繁體中文:: 學習 ASP SQL VB HTML code

學習 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在閱覽 :: 繁體中文 Chinese_Traditional

學習.主題:
首頁
ASP
. Active-Server-Flash
. Array
. Cache
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
»Cookies
. Response
. Server
. server-createobject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
php
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....學習.教學 > ASP > request » cookies

3w learning

request >
cookies

Title:

Request.Cookies("_____")


呼叫出暫存於自己電腦裡的特定網路餅乾資料
Description:

Response.Cookies :: create a cookie Request.Cookies :: retrieve a cookie value --------attention------------ security: cookies are sweet but they may kill your teeth [ cookies can be a big hole for your computer security] tips: never create the same name cookies


response.cookies :: 用於建立網路餅乾資料

request.cookies :: 用於呼叫網路餅乾資料
Example Code:

<% Response.Buffer=True data=Request("data0") if data ="" then data=Empty Response.Cookies("data1")=data Response.Cookies("data1").Expires=#July 1,2006# %> go to an other page the cookes will keep in your computer [ this can be response.redirect "http://newURL" ] [ also can be action="http://newURL" ] [ as long as you use Request.Cookies("____") ] [ tips: same cookies may do exist between different domains ] <% data1=Request.Cookies("data1") %> ---------------------------------- <% ' txt is a from a submit form data txt =Request("txt" ) response.cookies("txt")=txt txt=request.cookies("txt") %>


常用於會員的登錄與登出

使用技巧:
建立網路餅乾前建議加上
Response.Buffer=True
來讓將建立的網路餅乾名稱的內容重設
比如在Login登錄會員時可用此方法
以免使用到前者的資料

當然同理可推:Logout登出會員時
也可使用此技術讓網路餅乾完全融化

-----網路安全-----
以上技術看似簡單,但其重要性也是
牽連到網路安全,處理不好就經常成為
網路漏洞....特別是在網咖圖書館公共室
辦公室會發生,因為多人共同用電腦的機會大

...以知名的大網站...G.Y. 等筆主都曾遇過

網路安全::網路餅乾也可成為一個網路大漏洞

網路餅乾:乾坤大挪移...偷天換日
就算你的私人電腦餅乾都有可能被他人得手
Example Result:


inorder to Request a cookie (retrieve a cookie ) need to Response a cookie (create a cookie ) first


注意:要先建立後才可能呼叫出
..
...
...

[ 9/7/2010 ]

www learning school add more scripts and tips memo
You are at >>3WT.EZER.COM >> 3WT.EZER.COM/ASP/REQUEST/COOKIES.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker Google SERP pageranking checker
back to top Ezer code adding :: Questions ;email