站內文章

2014年10月15日 星期三

Session的使用 建立 取值 移除

//Session建立  
Session.Add("sessionName", "123");
//or
Session["sessionName"] = "123";

//Session取值
string s = Session["sessionName"].ToString();

//Session移除
Session.Remove("sessionName");

沒有留言:

張貼留言