cookie编程
上一篇 /
下一篇 2010-09-18 17:24:39
/ 个人分类:C#
B^ jx3v#g0
;O)~%qa,U-\*Q0
51Testing软件测试网)wNj%a Vjt4I
code:
51Testing软件测试网h_o+H2b5q&V
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
P'r*uF-o|Z0
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HttpCookie hc = Request.Cookies["UserCookie"];
8aeDH/K|0
if (hc == null)
{
hc = new HttpCookie("UserCookie");
PL!F
{mIb0
hc.Value = "xxx";
51Testing软件测试网txh
Lqh}
DateTime now = DateTime.Now;
51Testing软件测试网_u fn8EZ.u6x
TimeSpan ts = new TimeSpan(1, 1, 1);