Revert "[#1090] see [#1737]"

This reverts commit 0fafc9144a04b69d73533b390175d52bbe9effc6.
[#1715] added warning about .tag and escaping
[#1743] rememberme cookie has a wrong expiration

the result of "Time.parseDuration(duration)" was treated as an Integer, and this can exceed the limit of Integer.MAX_VALUE very easily, we can cast to Long to prevent this issue.