|
|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Yuri Kostylev 2:5050/61.1 23 Apr 2002 17:33:17 To : Alexey Staroselets Subject : Re: куки -------------------------------------------------------------------------------- .RFC-X-Complaints-To: news@yk1.udmts.elektra.ru .RFC-NNTP-Posting-Date: 23 Apr 2002 14:33:17 GMT From: Yuri Kostylev <yuri@yuri1.udms.elektra.ru> Alexey Staroselets <Alexey.Staroselets@p11.f1186.n5030.z2.fidonet.org> wrote: SS>> Так как я недавно изучаю перл вот такой у меня и SS>> вопросик :) SS>> В каком формате устанавливать дату в куки????... SS>> SS>> $data="?"; SS>> print "Set-Cookie: cookieusername=$username; path=/; SS>> expires=$data\n"; SS>> ...зарание сПасЫбо!!! AS> день_недели_англ, DD-Mmm-YY HH:MM:SS GMT HTTP applications have historically allowed three different formats for the representation of date/time stamps: 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]). ..... from rfc2616 -- http://addewyd.izhnet.ru Dydy llewod ddim yn meddwl yn yr haf --- ifmail v.2.14.os-p7 * Origin: Izhevsk (2:5050/61.1@fidonet) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/20620bb09d8a7.html, оценка из 5, голосов 10
|