using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CarGallery
{
    public partial class mstr1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var sess = Session["username"];

            // migim age session e user vojood nadasht va ya khali bood
            // pas karbar login nakarde !
            // pas dokmeye Admin Panel va Logout ro makhfi kon

            if (sess == null || sess == "")
            {
                lbtnAdmin.Visible = false;
                lbtnLogout.Visible = false;
            }
                
            else// vali age session e username vojood dasht va meqdar ham dasht, dokmeye Login ro makhfi kon
                lbtnLogin.Visible = false;

        }
    }
}