下面这个帖子是将用户保存在cookies 里面的
http://www.cnvery.net/topic.aspx?topicid=1301
读取的时候怎么判断呢? 为何是cookies而不是session?请高手指点。
|
UID:791 |
|
下面这个帖子是将用户保存在cookies 里面的
http://www.cnvery.net/topic.aspx?topicid=1301 读取的时候怎么判断呢? 为何是cookies而不是session?请高手指点。 Time: 07-11-11 09:41
|
|
|
UID:669 |
|
请高手指点
Time: 07-11-11 21:46
告子曰:“食色,性也。仁,内也,非外也;义,外也,非内也。” |
|
暂时空缺
|
|
UID:847 |
|
取得用户信息...
代码 using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using CVCommunity.Provider; using CVCommunity.Kernel.Entity; using CVCommunity.Kernel.DALFactory; namespace WebApplication4 { public partial class test : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { HttpCookie current = CookieProvider.Get("user"); if (current == null) current = CookieProvider.Set("user"); Response.Clear(); Response.Write(current.Values.Count.ToString() + " "); for (int i = 0; i < current.Values.Count; i++) { Response.Write(i.ToString() + current.Values<I>.ToString() + " "); } Response.Write(current.Values["UN"]); Response.End(); } } } Time: 07-11-12 19:17
http://www.ta100.com/index.aspx |
|
|
UID:847 |
|
晕,代码状态下 <br>被过滤了......
Time: 07-11-12 19:18
http://www.ta100.com/index.aspx |
|
|
UID:669 |
|
ta100于2007-11-12 19:18:57在大作中提到:晕,代码状态下 确实很是个问题! Time: 07-11-12 22:31
告子曰:“食色,性也。仁,内也,非外也;义,外也,非内也。” |
|
|
UID:305 |
|
楼上的水客改名了??
|
|
暂时空缺
|