allow to change session in db to session in file