473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

help with Form Authentication

Using Form authetication to grant users access to a web application. If
I go to the default webpage it shows the login screen but if enter a
specific page in the application, it allows access instead to
redirecting to the login screen. I am not sure how to avoid this. Below
is the code from the app. I would appreciate if anyone could help me
solve this problem.
web.config
<authorization>
<allow users="?"/>
</authorization>
<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="60"
loginUrl="login.aspx"/>
</authentication>
Thanks

MB

Nov 19 '05 #1
4 1004
On 23 May 2005 09:15:05 -0700, "Mohan" <ka******@gmail.com> wrote:
web.config
<authorization>
<allow users="?"/>


I think you want <deny users="?" />

-shane

Nov 19 '05 #2
worked like a charm
Thanks

Nov 19 '05 #3
Celebrated too soon. The problem now is that it keeps refreshing the
login screen and never enters the app. Does it have to do with IIS
settings. PLease help

MB

Nov 19 '05 #4
On 23 May 2005 09:54:40 -0700, "Mohan" <ka******@gmail.com> wrote:
Celebrated too soon. The problem now is that it keeps refreshing the
login screen and never enters the app. Does it have to do with IIS
settings. PLease help


Are you using FormsAuthentication to redirect from your login page?

FormsAuthentication.RedirectFromLoginPage(user, rememberMe.Checked)

-shane

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Trogdor | last post by:
I set up a server on an AMD 650 machine running gentoo linux. I installed Apachie 2, MySQL 4.1 and PHP 4.3.11 I use another computer on my local net (192.168.0.x) to access the server as a...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
0
by: Dinesh Upare | last post by:
We are running in weird problem. We have web application1 and web application2 on same server and web application3 on other server. 1 and 2 has form based authentication and has been configured...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
2
by: Chad Beckner | last post by:
Hi everyone, I am developing a site in which the root will be set with Anonymous & Basic permissions. Past that I will have an application (directory) in which I will be developing...
0
by: emiliano | last post by:
Hey guys, i was just googling some information about how to use the ClientForm package with a page which requires HTTP basic authentication and i got here :P ... So here is the problem, lets see if...
6
by: david | last post by:
I have developed login.aspx for Web form based authentication, and configured IIS and Web.config. It has been working until two days ago. I believe that some other people changed the IIS...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.