第八天
學習目的
在各個網頁間的變量傳遞和一些記錄用戶的登陸信息要用到SESSION和COOKIE
首先看一下SESSION的使用
寫入一個SESSION
Session[
Session(
讀取一個SESSINN
string username= Session[
dim username=Session(
再來看一下COOKIE的寫入
DateTime dt=DateTime
HttpCookie mycookie=new HttpCookie(
mycookie
mycookie
Response
dim dt as DateTime
dt=DataTime
dim mycookie as HttpCookie
mycookie=new HttpCookie(
mycookie
mycookie
Response
看一下COOKIE的讀取
HttpCookie mycookie=Request
string username=mycookie
dim mycookie as HttpCookie
mycookie=Request
dim string=mycookie
到此《八天學會ASP
From:http://tw.wingwit.com/Article/program/net/201311/15644.html