changes to sessionhandler for compat with php53