[eluser]Rick Jolly[/eluser]
Or use controller inheritance. All secure pages would extend a parent controller that does the authentication check in its constructor.
[eluser]Moon 111[/eluser]
[quote author="Rick Jolly" date="1222373144"]Or use controller inheritance. All secure pages would extend a parent controller that does the authentication check in its constructor.[/quote]
[eluser]Rick Jolly[/eluser]
So in the constructor of the parent controller, if the user isn't authenticated (check a session variable), then redirect to a login page.