add Date type support, add long time cookie