Welcome! Log In Create A New Profile

Advanced

формат даты в cookie

Anton Yuzhaninov
March 30, 2012 07:44AM
Модуль ngx_http_userid_module при выдаче кук использует устаревший формат даты,
например:
expires=Thu, 31-Dec-37 23:55:55 GMT

Почему не используется такой формат?
expires=Sun, 31 Dec 2037 23:55:55 GMT
Такой формат не понимают какие то бразуеры? Если да, то какие?

В RFC по этому поводу написано
http://tools.ietf.org/html/rfc2616#section-3.3.1

Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format

The first format is preferred as an Internet standard and represents
a fixed-length subset of that defined by RFC 1123 [8] (an update to
RFC 822 [9]). The second format is in common use, but is based on the
obsolete RFC 850 [12] date format and lacks a four-digit year.
HTTP/1.1 clients and servers that parse the date value MUST accept
all three formats (for compatibility with HTTP/1.0), though they MUST
only generate the RFC 1123 format for representing HTTP-date values
in header fields.

--
Anton Yuzhaninov

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

формат даты в cookie

Anton Yuzhaninov March 30, 2012 07:44AM

Re: формат даты в cookie

Maxim Dounin March 30, 2012 08:12AM

Re[2]: формат даты в cookie

Andrey Repin March 30, 2012 12:22PM

Re: формат даты в cookie

Anton Gorlov March 30, 2012 12:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready