method:getMaxAge ();return type:intcontent:ใช้คืนค่า อายุ ของ Cookie (ค่า Default คือ -1)example:Cookie cookie = new Cookie ( “username”, “panda” ); int num = cookie.getMaxAge ();