User always redirected to logon form

Discussion in 'General troubleshooting' started by cdiscla, Sep 5, 2011.

  1. Hi,
    i've put today my ASPNET MVC3 app on Winhosting; the app uses native Forms Authentication used in MVC.
    I have an AdminController that can be accessed only by authenticated users; when the user is redirected to admin/xyz the system correctly redirects him to logon to authenticate him.

    The problem is that when the user is authenticated and waits 10-15 seconds, when he clicks on a link the user is always redirected to the logon form even if he is authenticated.

    I thought it was a session problem and i asked Winhosting to use SqlServer sessions but i see that the Sql tables (AspStateTemp*) that should handle sessions data are always empty.

    Here is the node i added in web.config:
    <sessionState mode="SQLServer" allowCustomSqlDatabase = "true"
    sqlConnectionString="data Source=tcp:s06.Winhost.com;database=DB_name;user id=DB_user;password=DB_passwd"
    cookieless="false"
    timeout="600" />

    Can anyone, please, help me?
    Thanks in advance and greetings
    Antonino
     
    Last edited by a moderator: Oct 14, 2015
  2. Last edited by a moderator: Oct 14, 2015
  3. Nice. Glad you got it worked out.
     

Share This Page