Change to terminate user session to prevent strange behavior
Update usage of deprecated getRequest function