Why exactly are the groups stored in the session?