Re: How to redirect any page to Login.aspx? I tried but...



Do you want role based access? If so, you need to set up the roles (either
the ASP.NET provider -- assuming 2.0 or a custom membership provider (you
code it)), you will have to set them up and then configure correctly.

Once you are logged in, you should be able to hit the page over and over
again.

If, instead, you mean.

1. Log in
2. Shut down browser
3. Hit page and served without login

Then, you need to turn off the persistent cookies with your
RedirectFromLoginPage() in the login.aspx page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Big Charles" <cherediatech@xxxxxxxxx> wrote in message
news:1155134830.509995.7400@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thank you. That works partially.

If I type:
http://localhost/MyPath/WebForm1.aspx
Now I am redirecting to wf_login.aspx


However, after I login to the website typing:
http://localhost/MyPath/wf_login.aspx

if I type this on the address:
http://localhost/MyPath/WebForm1.aspx

I can access !

Winista wrote:
Change this to...

<deny users="?" />




.



Relevant Pages

  • Forms Authentication without Login Page
    ... using RedirectFromLoginPage()? ... My reason for asking is that I'm trying to use Forms Authentication to allow ... the MS examples show using a Login page that users are redirected to if they ... explicitly log the user in but without redirecting to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web login problem
    ... Your so-caled colution will work only if the user isnt some twitchy 14 yr old that can hit the button faster than the redirect can happen.. ... the Login page, this means that if they hit Back from the Login page ... When user logs out the cookie is disposed. ... Or specify the time in minutes before a cached page expires: ...
    (microsoft.public.dotnet.languages.vb)
  • RedirectFromLoginPage
    ... if the ReturnURL parameter is blank when the RedirectFromLoginPage method is ... Depending upon the login status the login button performs either a login or ... Sub Page_Load ...
    (microsoft.public.dotnet.framework.aspnet)
  • RedirectFromLoginPage
    ... if the ReturnURL parameter is blank when the RedirectFromLoginPage method is ... Depending upon the login status the login button performs either a login or ... Sub Page_Load ...
    (microsoft.public.dotnet.security)
  • Re: NEWBIE-"RedirectFromLoginPage"
    ... The method RedirectFromLoginPage() redirects to default.aspx. ... > Trying to make a login page to a website. ... > Requested Url: /mmgims/default.aspx ...
    (microsoft.public.dotnet.framework.aspnet.security)