I create a MySQL connection object using mysqli_connect. The object works to access the database (e.g. mysqli_query). Using print_r I can see that it contains information I passed as parameters to mysqli_connect (e.g. host_info). However, when I save it in a $_SESSION variable, and then retrieve it later, it is mostly blank, and contains none of the data I initialized it with. I use pretty much the same method with FileMaker which also returns an object with the first command, and have no problem retrieving and re-using the object.
My workaround is to simply keep calling mysqli_connect to generate a new object (which works just fine), but that doesn't seem ideal.
Is there something special about this object that makes it impossible to be saved in a $_SESSION variable?