Form Authentication

ASP.NET

Form Authentication

Postby amt1bw » Fri, 03 Mar 2006 14:28:27 GMT

I am new to asp .net mobile.  Here is my problem, please helpl!
I created a mobile application with form authentication.  Everything works, 
however, when authentication cookies expired, if I click on the page, it gave 
me an exception error and telling me the cookies/session is expired.  How can 
I trap the exception and redirect to logon page instead?

Thanks....for your help  
-- 
jkuo

Similar Threads:

1.Forms Authentication question: How to have some pages open and some requiring forms authentication

I am trying to build an app where the stuff in the root directory is open to
all, but anything under the Restricted directory requires you to login and I
want to use Forms to do it.  I'm having trouble getting the web.config to
work properly.

First I tried to have a second web.config in the sub directory with
authentication and authorization set to forms, but it blew up.
Next, I tried to modify the root web.config in the following manner wanting
it to only force a login when trying to navigate into the sub directory but
it takes me to the login right away:
I thought setting the path to the sub directory would restrict it to pages
in the sub directory but it's not working.
<authentication mode="Forms" >

<forms loginUrl="FormsAuthenticated/login1.aspx" name="AuthCookie"
timeout="60" path="/FormsAuthenticated"></forms>

</authentication>



<authorization>

<deny users="?" />

<allow users="*" />

</authorization>






2.Enabling Windows Authentication from inside Forms Authentication (ASP.NET 2.0)

I need the ability to bypass the forms authentication login page when the 
user requesting the protected page is running on our corporate network and 
is also logged into the corporate domain.  How do I do this?

Thanks,
Mike Ober.


3.SQL integrated authentication when using forms authentication

I currently I am using integrated windows authentication, (anonymous access 
disabled), with impersonation on my asp.net app. I would like to implement 
forms authentication against AD, but I have not found a way to then have the 
proper AD user authenticated on the SQL server. If I enable anonymous 
access and then specify a user that had rights to the SQL server I can make 
the calls but I loose any audit trail or SQL server level rights (everyone 
appears to be the same user to SQL). If I use SQL authentication on the SQL 
server I can send the proper credentials to the server using the information 
from the logon form, but I would like to stick with integrated 
authentication on the SQL server if I could. 


4.Forms Authentication displays basic authentication dialogue window

Hi,

A very large portion of my site uses forms authentication which seems
to work reasonably well. However many of my authenticated pages
display a basic authentication dialogue box prior to display, even
though I am authenticated. Clicking cancel to the dialogue box
displays the page fine with no problem however after a while this
becomes very annoying!

The pages that display the basic authentication dialogue box all pull
images, and access directories from folders that are outside of the
protected directory which it must do.

I have tried giving full control on the server to the Network Service
user which didn't work and, as a test, put full control on for all
users on the server which still didn't work.

It works fine on my local server.

If anybody could enlighten me I would be very grateful.

Many thanks,

Brett

5.ASP.Net Forms authentication with basic authentication popup

Relatively new to ASP.Net but have a strange problem.

My site uses forms authentication for a large administration section
however after the user logs in each page they subsequently click on
brings up a basic authentication dialogue box. Clicking cancel will
still allow the user to view the page but this quickly becomes very
annoying.

What is even more confusing is that for another part on the same site
I decided to use session variables for a secondary, much smaller
administration section and not the ASP.Net forms authentication but
the same problem occurs, each page the user clicks on brings the basic
authentication popup prior to display.

Any suggestions?

6. Winddows authentication AND Forms Authentication

7. Cache Authentication vs Forms Authentication - Thoughts?

8. Moving from Baisc Authentication to Forms Authentication



Return to ASP.NET

 

Who is online

Users browsing this forum: No registered users and 90 guest