CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 10/15/2007 6:00:40 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 14 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
e_stylzz
Asp.Net User
Password Protecting a portion of the website10/15/2007 6:00:40 PM

0/0

Currently what I have setup will work for a day or two then it will stop working.

 Protected pages are located in a folder called admin.  The admin folder also has a web.config file to deny all users.

At the root level I have a login page and a web.config file with usernames and passwords hardcoded in.

I read that this is how to set it up and it will work, but only for a day or two.  After that, it looks for the login.aspx file in the admin folder instead of the root.  If I change to where it points in the web.config file, I can't get past the login form.  Any ideas?

 
admin/protected files

admin/web.config            - only denies all users

/login.aspx

/web.config

 

XiaoYong Dai –
Asp.Net User
Re: Password Protecting a portion of the website10/17/2007 5:08:28 AM

0/0

e_stylzz:

it looks for the login.aspx file in the admin folder instead of the root.  If I change to where it points in the web.config file, I can't get past the login form.  Any ideas?

Hi

I suggest you specify absolute path for loginUrl. Please try to add this line in web.config file which locate at Root path of website.

<authentication mode="Forms">
    <
forms loginUrl="~/login.aspx" name="appName" timeout="60" path="/"> </forms>
</
authentication>

 


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
e_stylzz
Asp.Net User
Re: Password Protecting a portion of the website10/17/2007 11:39:49 AM

0/0

That did it.  I had originally tried that, but with the web.config file in the admin folder and that didn't work.  Thats so much!!!! 

e_stylzz
Asp.Net User
Re: Password Protecting a portion of the website10/23/2007 2:15:54 PM

0/0

Well, it worked for a few days then started doing the same thing again: Looking for the login.aspx file in the admin folder.

 .Any ideas now?

Server Error in '/library/admin' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /library/admin/login.aspx

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Excel 2007: The Missing Manual Authors: Matthew MacDonald, Pages: 831, Published: 2006
The Tiny Guide to OpenOffice.org Authors: Benjamin Horst, Pages: 98, Published: 2004
Using Microsoft Office XP Authors: Ed Bott, Woody Leonhard, Pages: 1158, Published: 2001
FreeBSD Unleashed: User Level: Intermediate - Advanced. Authors: Michael Urban, Brian Tiemann, Pages: 1024, Published: 2001
Ccie Practical Studies: Practical Studies Authors: Karl Solie, Pages: 1366, Published: 2002
Windows XP Pro: The Missing Manual Authors: David Pogue, Craig Zacker, L. J. Zacker, Pages: 658, Published: 2003
Dreamweaver CS3: The Missing Manual Authors: David Sawyer McFarland, Pages: 995, Published: 2007
Microsoft Office Excel 2007 Programming: Your Visual Blueprint for Creating Interactive Spreadsheets Authors: Denise Etheridge, Pages: 352, Published: 2007
Mastering Microsoft Office 2003 for Business Professionals Authors: Gini Courter, Annette Marquis, Pages: 720, Published: 2004

Web:
Password Protecting a portion of the website - ASP.NET Forums Re: Password Protecting a portion of the website. 10-17-2007, 1:08 AM. Contact ... Re: Password Protecting a portion of the website. 10-17-2007, 7:39 AM ...
How do I password-protect a folder on my website? .: Netfirms 24/7 ... Nov 7, 2005 ... Password-protection of a portion of your website is accomplished by placing all the files you wish to password-protect under a common folder ...
Will a password protect portion of my site get indexed? Will a password protect portion of my site get indexed? ... If I have no inbound links going to this portion of the website - if there is no ...
Password protecting part of your GoDaddy hosted website at Mac Smarts Sep 16, 2008 ... So let’s say you’re hosting your website with GoDaddy (for whatever ... I was eventually directed to this page: Password Protecting a ...
Free Password Codes to Protect Web Page - LoveToKnow Web Design The Benefits of Free Password Codes to Protect Web Page. Sometimes you need password protection for a web page, or at least a portion of a website, ...
Password Protecting a Web Builder Web Directory If you are a Web Builder and your web site resides on the ITS web server under the /www, /wwwres, or /wwwfac directory we can password protect a directory ...
Password Protecting Content with ASP.NET in Expression Web There are many ways that you can go about password protecting content, .... For example, you might have a portion of your website that is available to some ...
Password protecting web pages - The HTML Writers Guild Password protecting web pages. Table of Contents ... Often it is desirable to protect a certain portion of an otherwise private web site. ...
Password Protect Your Downloads - Prevent Theft - Shopping Cart ... Nov 16, 2007 ... What if the directory I want to password protect isn't hosted with Modular Merchant? For website directories hosted remotely, ...
WordPress › Support » Password Protect Entire Blog There are lots of different ways to password protect a website. You can use an . htaccess file, a php script or something more elaborate. ...

Videos:
The 11th Hour Narrated by Leonardo DiCaprio, this captivating documentary explores the perilous state of our planet, and the means by which we can change our cours...
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer, working in the...
How To Break Web Software - A look at security vulnerabilities in web software Google TechTalks April 13, 2006 Mike Andrews Mike Andrews is a senior consultant who specializes in software security and leads the web application...




Search This Site:










installation problem

help me

postback problems

total beginner

helpdesk for suporte

code testing in php

how to switch themes from a page not at top-level

what is the best approach for subscription based membership in asp.net 2.0?

problems with getprofile, how to find out if profile dosent exist.

windows authentication problem

how to find bottle-neck in application?

passing login info to dotnetnuke's url

profile property not working on postback to another page

members and masterpages

table sizing

modulelocalizer ver. 1.01 ready

microsoft.web.ui.webcontrols treeview problem

dotnetnuke printing capability pipe dream

property and enum

need help for treeview. msdn example doesnt work

redirecting different domains to dotnetnuke directory

cryptography class for the portal (ibs)

how to deploy our application using web deveoper ?

what program runs when i start debugging?

add/remove localsqlserver

register with bogus info - illegal?

using field name instead of field location

problem adding node to treeview

why to use constructors

memebership providers for multiple sites on different servers.

 
All Times Are GMT