[5.0] Session : remove useless foreach

As `put` functions already handles `$attributes ` as a `$key => $value` array