Work out which session store class to use automatically.