Users kicked back to login screen on postback

Discussion in 'ASP.NET 2.0' started by mikeymac, Jun 13, 2006.

  1. Hi there!

    I am having a problem where authenticated users are intermittently being kicked back to the login page when they perform an action that causes postback.

    For example, user1 might be logged in, and happily completing a submission form on one of my pages. When user1 selects an item from a dropdownlist(with autopostback set to true), there is about a 1 in 15 chance that he'll be kicked back to the login page.

    I've also seen this happen with datagrid sorting and clicking submission buttons.

    Has anyone else experienced an issue like this?

    Any help would be appreciated.

    - Mikeymac
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    hmmm... i can't think of any reason why this would happen.

    Is the replication process always the same? Or it logged out completely randomly.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. It's difficult to replicate the problem without seeing your code for user authentication.


    There could be many reasons to cause it to occur.[​IMG]


    but i do think there is trigger somewhere in your authen. code might cause thisproblem.





    for example, the following code could cause the problem youdescribed:
     
  4. wwv

    wwv

    Do not redirect the application to the login page in the Page_Load event.</o:p>
    Use as Start page either</o:p>
    Your Login page </o:p>
    or </o:p>
    Default.aspx / index.aspx page with redirection in the Page_Load event to the Login page.</o:p>
    </o:p>
    Have a fun!</o:p>
    Valentin</o:p>
    MCP C#</o:p>
    Do not hesitate to contact me!</o:p>
    www.wwv-it.eu </o:p>

    [email protected]</o:p>
     

Share This Page