rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / code / Atom feed
* BUG: cookies with expiration date
@ 2009-10-29 20:15 Ivan Ukhov
  0 siblings, 0 replies; only message in thread
From: Ivan Ukhov @ 2009-10-29 20:15 UTC (permalink / raw)
  To: Rack Development


Please have a look at this line:


value[:expires].clone.gmtime.strftime("%a, %d-%b-%Y %H:%M:%S GMT")

My default system locale is ru_RU.UTF8, therefore this line produces
string with Russian letters. Browsers cant set expiration date in
Russian. FF sets session cookies, Safari doesnt set cookies at all.
Suppose this is a bug. Instead of strftime, rfc2822 should be used.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-29 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-29 20:15 BUG: cookies with expiration date Ivan Ukhov

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).