你可以在设置时指定cookie的Path属性
解决方案 »
- 怎麼拆分字符串 比如說。。。。。。。。。。。。。。。
- 关于程序中设置了按键控制却没有反应的问题
- 关于doucument.write与window.onload
- js 切换背景图 那错了????
- HTTP Status 404怎么解决
- 脚本报错style为空或者不是对象,我想实现的功能是鼠标移动到直线,出现直线两个字,鼠标移开字消失
- 简单的一条语句,大家帮我看看这条语句错在哪里了,哭了!!!!!!! 没有分了
- 自动按键
- 怎么实现:当图片的面积大于所在table的width和height时,使之不撑大table也不用滚动条,只用手形状图标可以在table中移动图形,且保持图
- 我有一个FRAME:Left和Right,想用JavaScript中OPEN方法,根据Left中参数的不同,打开不同的页面,定位到Right上(也就是不弹出新的页面
- 关于背景图随机换 调用JS 小妹感谢大家了
- 大家请来帮个忙,做ASP.NET的进,相关问题
expires=date;
Setting no expiration date on a cookie causes it to expire when the browser closes. If you set an expiration date in the future, the cookie is saved across browser sessions. If you set an expiration date in the past, the cookie is deleted. Use GMT format to specify the date. domain=domainname;
Setting the domain of the cookie allows pages on a domain made up of more than one server to share cookie information. path=path;
Setting a path for the cookie allows the current document to share cookie information with other pages within the same domain—that is, if the path is set to /thispathname, all pages in /thispathname and all pages in subfolders of /thispathname can access the same cookie information. secure;
Setting a cookie as secure; means the stored cookie information can be accessed only from a secure environment.
用分号加空格才能隔开
你的方法我试了,也不行,还是不能设置Cookie值。