made seconds an optional named parameter for set_cookie