i am using forms authentication for my website www.abc.com, i wanna use the same website authcookie for aaa.abc.com.
What steps i need to follow
View Complete Post
I have strange thing here, my ASP.NET app works fine on my development PC, but when I deploy it on the server, the Forms Authentication won't work. The page is being redirected to the "login.aspx" page, but when I enter a valid username/password and hit the login button, it also goes to the login.aspx page (with no errors and no throw, it keeps like this forever).
I am using the default ASP.NET Membership provider, I have setup the hosting server to be exactly as my PC, so both have same settings of IIS, ASP.NET 4.0 Global Configuration (in IIS), and SQL Server 2005 Express Edition.
I searched for this problem in google and tried several suugestion (like removing the clear() in web.config, manually add the membership/role provider in web.config, change security in the physical folders, etc...) but with no luck.
Below is my web.config (which is working fine in my development PC):
For more information on how to configure your ASP.NET application, please visit
<add key="TermYear" value="2009"/>
Hello, I am seeing a strange problem with Forms Authentication in my DD site. A user logs into and can view/edit/delete data all day, but when they execute a Custom Filter against data (for example , a control DynamicData/Filters/CustomerLastNameSearch.ascx ) then the site auth fails, and redirects to the log in screen.
in web.config I have
<authentication mode="Forms"> <forms name=".Star" loginUrl="~/Login.aspx" protection="All" defaultUrl="~/Default.aspx" path="/" timeout="43200" cookieless="UseCookies" /> </authentication>
Offhand, I am thinking two things : that DynamicData/Filters path requires some special handling for some reason, or the control extension ascx is causing auth to get confused. Has anyone else experienced this or have any suggestions? Thanks!
Form template has cascading dropdown lists. When item selected from first list, form code executes a FileQueryConnection to retrieve data from a list to populate 2nd listbox.
Getting 403 forbidden when explicitely attempting to retrieve data from code. Form is using connections from a data connection library.
The template works perfectly when deployed to a windows authenticated site. Fails when executed from the forms authenticated site.
I'm in the middle of converting an intranet application to use forms authentication. The authentication process works fine for the core application and all the nested classic asp pages. However, my nested asp.net applications do not work. I have mapped their web.configs to the correct login url. If I attempt to access them after logging in, I am automatically redirected to the homepage of the intranet application. If I try to access them directly, I am redirected to the login screen, as I should be, and then the intranet homepage after the login process, instead of the page I need to access.
At first, I thought there might be some remnant of the security processes in the nested applications, but it does it for applications that have no security processes other than the one for the core intranet.
Since this is my first crack at using forms authentication, I'm assuming I've missed some step. Any ideas?
Here is the section of my web.config:
<authentication mode="Forms"> <forms loginUrl="~/folder/loginpage.aspx" name="Cookie Name"></forms>
<authorization> <deny users="?" /> <allow users="*"/>