Updated sessions/login/usergroups etc.

This is to provide the ability to check more than one group/section for
given references