Sign-up....

cookies的使用方法?

各位高人给我点意见啊~

比如说我做商城,我要购买多个商品保存在cookies里,怎么保存呢?

[50 byte] By [msdn] at [2007-8-15 10:02:08]
# 1 Re: cookies的使用方法?

response.Cookies("a_User")=request.Form("L_email")

Response.Cookies("a_User").Expires=Date+30

xinsheng212 at 2005-12-5 10:56:25 >
# 2 Re: cookies的使用方法?

多个商品,每个商品肯定有相关信息啊~

liujian098 at 2005-12-5 10:59:33 >
# 3 Re: cookies的使用方法?

换一种想法:

只保存商品的编号就是了,其他东西从数据库读

多个商品的话就用特殊符号分开:

response.Cookies("商品")=编号1&编号2......

hzhla at 2005-12-5 11:07:10 >
# 4 Re: cookies的使用方法?

配送方式相关信息呢?

liujian098 at 2005-12-5 11:26:37 >
# 5 Re: cookies的使用方法?

多个商品直接丢到数据库去吧

oomen at 2005-12-5 14:20:44 >
# 6 Re: cookies的使用方法?

怎么看不明白呢?

liujian098 at 2005-12-6 14:41:42 >
# 7 Re: cookies的使用方法?

laogou(老狼),你的没有经过测试吧?都返回错误了:

Cookies 对象 错误 'ASP 0102 : 80004005'

需要字符串输入

fzzzf at 2006-4-18 21:07:42 >

Web

All Classified