Set session for sorting