@authdirect() directive is used to redirect
to another page when a session is active. It simply prevents the page from loading by
redirecting to another page once a user session is active.
@authdirect('home') //redirects to url supplied