When I try to enter some very long data, (response from ChatGPT API) it doesn't get saved into sessions data which Im handling manually by storing in a MySQL table.
$_SESSION[$propertyName."-".$ID] = addslashes($propertyValue);
Uncaught mysqli_sql_exception: Data too long for column 'Data' at row 1
Data is of Type text latin1_swedish_ci
I thought type of text can handle large amounts of data.