Auto redirect to login page

I have a page that I have set as my Start Page.

When I try to go to that page, and I am not logged-in, I get redirected to a Login page.

I don't remember anymore how I set this up, or how it knows to go to this Login page.  There's nothing in Page_Load or Page_Init that checks the logged in status.
LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nisarkhanConnect With a Mentor Commented:
have you seen anything in the web.config ?
its really difficult to help you since have no clue what your application looks like.
0
 
nisarkhanCommented:
are you using any login controls ? if yes then may be you have set in the properties.
0
 
Tom KnowltonWeb developerAuthor Commented:
Not sure I am understanding.

There are no login controls on the page in question  (meaning, the page that I set as my Startup page has no login controls on it).  It knows nothing about the Login page.
0
 
Tom KnowltonWeb developerAuthor Commented:
nisarkhan:

That was the problem.  I had forgotten to create a web.config file in that directory, so no authentication rules were being enforced, including a redirect if you are not logged-in.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.