public bool securityLayer()
 {
     if (!SageCRMBaseClass1.Authenticated())
     {
         return(false);
     }
     return(true);
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Title = "Panoply Technologies";

        Master.requiresAuthentication = true;
        SageCRMBaseClass1.PortalLogout();
        lbl_logoutinfo.Text = "You are now logged out. Thank you for using the Panoply Technologies Portal";
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     lbl_welcomenote.Text = " <a href=\"logon.aspx\" >Logon</a>";
     if (this.securityLayer())
     {
         lbl_welcomenote.Text = "Welcome to Panoply Technologies Support. You are currently logged in as " +
                                SageCRMBaseClass1.GetVisitorInfo("pers_fullname");
         lbl_welcomenote.Text += " <a href=\"logout.aspx\" >Logout</a>";
     }
     else
     {
         if (this.requiresAuthentication)
         {
             this.setErrorMessage();
             lbl_welcomenote.Text = " <a href=\"logon.aspx\" >Logon</a>";
         }
     }
 }