Login problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praveenkhade
    New Member
    • Aug 2007
    • 21

    Login problem

    hi sudhanva
    I got a prob in my project. wen i login to web site, the default.aspx wil be displayed. In this page a Link Button is there(in which confidential documents are there), wen i click this button it should show login page again, so dat authorized person should open it. The username is in session. I redirected it then same cyclic process is going on ( again i login if click link button again login) wat to do??

    protected void LinkButton3_Cli ck(object sender, EventArgs e)
    {

    FillRepeater();

    }

    public void FillRepeater()
    {

    //int startRecord = (int.Parse(Curr entPage.Value) - 1) * int.Parse(PageS ize.Value);
    mvUser.SetActiv eView(viewProdu cts);
    //DataSet ds = ConDB.GetProduc ts(startRecord, int.Parse(PageS ize.Value));
    DataSet ds = ConDB.GetProduc ts();
    rptProducts.Dat aSource = ds;
    rptProducts.Dat aBind();

    //foreach(Repeate rItem i in rptProducts.Ite ms)

    //{
    // ImageMap m = (ImageMap)i.Fin dControl("img1" );

    // DateTime dt=DateTime.Now .AddDays(-1);
    // TimeSpan ts=DateTime.Now-dt;


    // Page.Cache.Add( "i1", m,null, dt,TimeSpan.Zer o,CacheItemPrio rity.High, null);
    // }

    }
  • balame2004
    New Member
    • Mar 2008
    • 142

    #2
    Close the current session by clearing all session objects and also clear the web page history when you click log in button and reset session objects.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      I'm a bit confused:

      A user logs into your website, then then click a link button...why do they need to log in again?

      You should consider using Roles Management. This will help you determine what security context the user's account has (what permissions the user has) in order keep restricted materials confidential.

      -Frinny

      Comment

      Working...