save sessions in file