2013年9月7日 星期六

asp-cookie



cookie write

Response.cookies("CookieName") = someValue



m or "d" for days, "h" hours, "n" minutes, "s" seconds
esponse.Cookies("CookieName").Expires=dateadd("m", 1, now())

Response.Cookies("rtest1").Expires=dateadd("m",1,now());
and get 
error 800a138f Object expected


Response.Cookies("rtest1").Expires=now()+30 ;
and get 
error 800a138f Object expected


Response.Cookies("rtest1").Expires="exdate";
and get 
error 800a000d Type mismatch (same as original attempt)


I try 
Response.Cookies("rtest1').Expires="dateadd('m',1, now())";
and get 
error 800a000d Type mismatch .
Anyone have any other suggestions?



cookie read
var authorize='<%=Request.Cookies("CookieName")%>';

沒有留言:

張貼留言