Form Authentication


    Sponsored Links


  • 1. Redirecting Mobile Page to a different page and come back
    Hi All, We have a requirement that when a user comes to a particular web page from mobile, we have to redirect the user to some other page showing some other content after some specified time say 20-30 seconds come back to the original page requested. Is that possible. We tried to use the timer class. Could anyone provide code samples. We are using ASP.NET 1.1 Mobile Pages in our Web application. Thanks for your help and efforts. Regards, Sathish Kuamr K
  • 2. Supplying files for donwload to mobile devices using mobile controls
    Hello, I'm relatively new to this dotnet stuff and have been tasked with investigating how all the mobile controls work. I've done a nice demo site which can display basic words and images but now I am trying to find out how I can add files (e.g. ringtones and screensavers) that people coming to our site can download to there phones As an example if I have an image and want users to be able to download it as a screensaver, how do I go about this. I'm hoping it's quite easy as I know there are lots of sites out there which already do it but I haven't been able to find any source code examples for it. If anyone has done this before or can point me to some good websites with examples it will be much appreciated. Thankyou Ian

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  

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>



<deny users="?" />

<allow users="*" />


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?

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 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


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,


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

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 18 guest