Re: Authentication login screen appears on both frames of the framset



Dana,

If you're using forms authentication when a user is not authorized to see a
page they are automatically redirected to the login page.

Since both of your frames are checking if the user is authorized they each
get redirected.

To fix this in the code for the page that you don't want redirected to the
login page you should remove it from the forms authentication process and
then check if the user is logged in "manually" in the code-behind. If they
are logged in display the data. If the are not then display an appropriate
message or nothng at all...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"dana lees" <danal@xxxxxxxxx> wrote in message
news:%23xvnC1x$FHA.740@xxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I am developing a C# asp.net application.
> I am using the authentication and authorization mechanism, which its
> timeout
> is set to 60 minutes.
>
> My application consists of 2 frames - a header frame and a main frame.
> When i enter the application, i see the login screen on the whole screen,
> but when the authentication expires, the login screen appears on both
> frames.
>
> How can i make it appear on 1 central screen?
>
>
> Thank you
> Dana
>
>


.



Relevant Pages

  • Re: authorization problems
    ... 401 is status code reserved in RFC for failed server security negotiations. ... your IE would pop up login screen asking for username and password. ... > When I use Windows authentication, response.StateCode can get 401, So I ... >> authorization caused problems. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: asp password
    ... If you use Forms authentication it will automatically redirect users to a ... login page you specify if they are not logged in. ... Web.Config or you could put them in an xml file or a database. ... This section sets the authorization policies of the application. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: get redirect url before login
    ... I suggest using HTTP Module for authentication and authorization. ... all requests will go through one central place where you will be doing ... >> My users who try to access a page before login are ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Form Level Authentication
    ... there is authorization tag which denies access to the pages ... > Which redirects all the pages to login page if not authenticated. ... > Can we open few pages which does not need authentication. ...
    (microsoft.public.dotnet.framework.aspnet)
  • [Full-Disclosure] Advisory: Dark Age of Camelot - Weak encryption of network traffic exposed persona
    ... Weak encryption in game client exposed customer billing and authentication ... encryption for billing information. ... The login binary has undergone several updates since then. ...
    (Full-Disclosure)