added method to get the session id for a user