Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Sessao.EncerrarSessao();
            string strRedirect = Request["ReturnUrl"] ?? "/";

            Response.Redirect(strRedirect, true);
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["Usuario"] != null)
     {
         Sessao.EncerrarSessao();
     }
     if (!IsPostBack)
     {
         txtNome.Focus();
     }
 }