Login configuration

Login configuration

Old forum URL: forums.lhotka.net/forums/t/9804.aspx

lazaroms posted on Wednesday, November 24, 2010

Hello all:

I need help one more time.

I write the following code in my web config file:

    <authentication mode="Forms">
      <forms loginUrl="Login.aspx" name="MyProject" />
      <deny users="?" />

The problem is that the Login page is showing everytime before I show another webpage.

I think I missed something because I don't see logic that the user has to log in before seeing any page. It sounds logic to me for user who are not authenticated but not for users.



Lazaro Manuel


RockfordLhotka replied on Sunday, November 28, 2010

Do you also have the code in global.asax.cs (or .vb) to restore the user's principal on each postback? That's a requirement. See Expert 2008 Business Objects and the ProjectTracker PTWeb sample for examples.

Copyright (c) Marimer LLC