Get session ID

using System.Web.SessionState

 

HttpSessionState ss = HttpContext.Current.Session;
HttpContext.Current.Session["test"] = "test";
TextBox1.Text = ss.SessionID;

 

posted @ 2010-02-20 22:29  greencolor  阅读(184)  评论(0编辑  收藏  举报