With login optional, you'll want this in your protected view as well.

Code:
    Function AllowAccess Returns Boolean
        Boolean bAllow
        //
        Get IsLoggedIn of ghoWebSessionManager to bAllow
        //
        Function_Return bAllow
    End_Function