Request.Cookies["名称"]我不明白你的意思,是不是想利用跨站脚本漏洞啊?点击管理可以给分。

解决方案 »

  1.   

    我想取到Cookie中的SessionID的值与数据库的值比较。
      

  2.   

    你不用自已读取cookie文件,因为这是ie和iis的事情1.写cookie
       this.Response.Cookies.Add(new HttpCookie("test","这是一个cookie"));
       这就往客户端的ie里写了一个cookie,ie会自动保存为文件的2.读cookie
       string cookievalue = this.Request.Cookies["test"].Value;
       就可以把刚才写进客户端的cookie读出来了
    3.给分点上面的“管理”
      

  3.   

    1.可能web程序,自动回取道对应的Cookie .
    你可以:Request.Cookies("SessionID") 2.怎么给人家分?
    你的帖子页面上有一个"管理",如何去做,一看就知道.
      

  4.   

    Server.HtmlEncode(Request.Cookies("userName").Value
      

  5.   


    Request.Cookies["SessionID"].ToString()

    Response.Cookies["SessionID"].Value="xxxxx";
    Response.Cookies["SessionID"].Expires=System.DateTime.Now.AddMonths(1);
      

  6.   

    我照几位大哥说的作了。在一个button_click里
    string strSessionID = this.Request.Cookies["SessionID"].Value;
    但是页面返回了错误:
    NullReferenceException: Object reference not set to an instance of an object.