Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Incubation, 0.9-RC1, 0.9, 1.0.0, 1.1.0
-
Windows XP, Jetty
Description
SimpleCookie.toCookieDate method to format cookie uses default locale. My default locale ru_RU. When browser receive cookie with expires formatted in non en_US locale, browser set cookie expires=session.
Resolutiojon of this trouble is:
private static String toCookieDate(Date date)
{ TimeZone tz = TimeZone.getTimeZone(GMT_TIME_ZONE_ID); DateFormat fmt = new SimpleDateFormat(COOKIE_DATE_FORMAT_STRING, Locale.US); fmt.setTimeZone(tz); return fmt.format(date); }Attachments
Issue Links
- is duplicated by
-
SHIRO-179 Invalid expires date format with non english default locale
- Closed