Recently I had a need to determine the session value of a MySQL plugin variable in a core file. Here I use the word plugin variable to refer to MySQL system variables provided by plugins. While this is not a very difficult task, it is not as straight forward as printing a global variable.…