Package of authentication/session handling routines