XQuery/URL Driven Authorization

Motivation
You want to check to see if a user is logged in before a page is rendered.

Method
This example will use a custom controller.xql file to do this.

Sample controller.xql file: