﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31982	Convert max_age to an int in set_cookie()	Matt Johnson	Hasan Ramezani	"The max-age attribute of cookie is supposed to be an integer

https://tools.ietf.org/html/rfc6265#page-20

I think it would be helpful to convert the max_age parameter of set_cookie() to an integer for the user. The benefit is simply that there are some cookie parsers that don't handle decimals gracefully. It's pretty easy to pass in a float without understanding the consequences. I spent a good chunk of time today trying to track down the problem.

Things to consider:
1. Do we only convert floats where the decimal part is 0? Or do we round or truncate?
2. If we can't successfully convert to an int, do we throw an exception, or just pass in the original value?"	Cleanup/optimization	closed	HTTP handling	3.1	Normal	fixed		Florian Apolloner Adam Johnson	Ready for checkin	1	0	0	0	1	0
