Nitrogen has convenience methods for storing user information
and roles. See wf:user/N
, and wf:role/N
.
In addition, Nitrogen provides methods to validate that the user has access to a page, redirect to a login page, and then redirect back to the original page.
In this demo, only authenticated users can access the restricted page. If you are currently an anonymous user, you will be prompted for a username and password.
View Module Source