Look into FormsAuthentication for ASP.NET. If you turn it on in your web.config, then it will check to ensure you're logged in before accessing each page, and if you're not, it will redirect you back to the login page.
There are lots of things you can do fairly easily, like defining pages that are exempt from the login requirement, defining where your default and login pages are, and redirecting back to the originally requested page when you're bumped back to the login page, and have to re-log in. On Feb 11, 6:58 am, Fabio Carvalho <[email protected]> wrote: > Hi, > I'm trying to define a login for a asp.net site I'm developing... > but, although I have already the login page defined I want to have a kind of > validation for every page to make sure the user is authorized or not, logged > in or not. > > Does anyone has any tip on that to share? > > Cheers, > Fábio
