|
|
|
Expiration date for cookie
|
|||
|---|---|---|---|
|
#18+
Странное поведение наблюдается при создании cookie из JavaScript'а. Создаю cookie так: function CreateCookie(name, value, daysToExpire) { var expires = new Date() expires.setDate(expires.getDate() + daysToExpire) var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + "; path=/"; document.cookie = curCookie; } А когда на сервере получаю этот cookie, то Expired выставленио в DateTime.Minvalue. В чем может быть проблема? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.08.2006, 13:28:11 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=18&tid=1390034]: |
0ms |
get settings: |
7ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
124ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
17ms |
get tp. blocked users: |
1ms |
| others: | 236ms |
| total: | 416ms |

| 0 / 0 |
