Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            maestrasInterfaz _maestrasInterfaz = new maestrasInterfaz();

            if (_maestrasInterfaz.verificarSessionesSeguridad() == true)
            {
                //cargamos informacion del usuario conectado
                cargar_info_usuario_session();

                tools _tools = new tools();
                QueryStringSeguro = new SecureQueryString(_tools.byteParaQueryStringSeguro(), Request["data"]);

                String img_area      = QueryStringSeguro["img_area"].ToString();
                String nombre_area   = QueryStringSeguro["nombre_area"].ToString();
                String nombre_modulo = QueryStringSeguro["nombre_modulo"].ToString();
                Label_NOMBRE_MODULO.Text = nombre_modulo;
            }
            else
            {
                Response.Redirect("~/seguridad/login.aspx");
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            maestrasInterfaz _maestrasInterfaz = new maestrasInterfaz();

            if (_maestrasInterfaz.verificarSessionesSeguridad() == true)
            {

                //cargamos informacion del usuario conectado
                cargar_info_usuario_session();

                tools _tools = new tools();
                QueryStringSeguro = new SecureQueryString(_tools.byteParaQueryStringSeguro(), Request["data"]);

                String img_area = QueryStringSeguro["img_area"].ToString();
                String nombre_area = QueryStringSeguro["nombre_area"].ToString();
                String nombre_modulo = QueryStringSeguro["nombre_modulo"].ToString();
                Label_NOMBRE_MODULO.Text = nombre_modulo;
            }
            else
            {
                Response.Redirect("~/seguridad/login.aspx");
            }
        }
    }
Пример #3
0
    protected void Page_Init(object sender, EventArgs e)
    {
        maestrasInterfaz _maestrasInterfaz = new maestrasInterfaz();

        if (_maestrasInterfaz.verificarSessionesSeguridad() == false)
        {
            Session.Add("SESSION_CADUCADA", "True");

            Response.Redirect("~/seguridad/login.aspx");
        }
        else
        {
            if (Session["USU_TIPO"].ToString() == "PUBLICO")
            {
                Session.RemoveAll();

                Response.Redirect("~/seguridad/login.aspx");
            }
        }
    }
    protected void Page_Init(object sender, EventArgs e)
    {
        maestrasInterfaz _maestrasInterfaz = new maestrasInterfaz();

        if (_maestrasInterfaz.verificarSessionesSeguridad() == false)
        {
            Session.Add("SESSION_CADUCADA", "True");

            Response.Redirect("~/seguridad/login.aspx");
        }
        else
        {
            if (Session["USU_TIPO"].ToString() == "PUBLICO")
            {
                Session.RemoveAll();

                Response.Redirect("~/seguridad/login.aspx");
            }
        }
    }
Пример #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        maestrasInterfaz _maestrasInterfaz = new maestrasInterfaz();

        if (_maestrasInterfaz.verificarSessionesSeguridad() == false)
        {
            Response.Redirect("~/seguridad/login.aspx");
        }
        else
        {
            cargar_informacion_areas_y_modulo();

            if (IsPostBack == false)
            {
                cargar_info_usuario_session();

                crgar_menu_botones();

                Session["URL_ANTERIOR"] = HttpContext.Current.Request.RawUrl;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        maestrasInterfaz _maestrasInterfaz = new maestrasInterfaz();

        if (_maestrasInterfaz.verificarSessionesSeguridad() == false)
        {
            Response.Redirect("~/seguridad/login.aspx");
        }
        else
        {
            cargar_informacion_areas_y_modulo();

            if (IsPostBack == false)
            {
                cargar_info_usuario_session();

                crgar_menu_botones();

                Session["URL_ANTERIOR"] = HttpContext.Current.Request.RawUrl;
            }
        }
    }