sessions foreach