Changing the a_sessions table from longtext to longblob fixed it. Thanks, Steven! Now that I know the answer I've found the other threads relating to this, but I was apparently using poor search terms before :)