Add LegacyPdoSessionHandler Class

Addresses #12833.

Add a LegacyPdoSessionHandler class to aid users who are having issues upgrading to 2.6. This class does not require a database schema update. It also will keep sessions active after upgrading.