implementation of file session driver