Form Authentication


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Form Authentication

  1. #1
    Join Date
    Jun 2004
    Location
    Pakistan
    Posts
    292

    Form Authentication

    Hi, I know a few things about how Form Authentication work and I have done it on several occasions but I am having some problems. The problem is that there is no ReturnURL.

    I have my web.config file set up as the rest of my projects and the rest of the projects work fine. but whenever I try to enter a restircted page on my current project, it takes me to the login page without any ReturnURL in the URL parameters. which is why I can't redirect the URL to the page they actualy asked for (there are a/b 5 pages that are restricted).

    Here are some part of web.config:
    Code:
    	 <authentication mode="Forms" >
    		  <forms
    			 loginUrl="catalog/login.aspx"
    			 slidingExpiration="true"
    			 timeout="100"
    			 path="/"/>
        <location path="catalog/AccountInfo.aspx">
            <system.web>
                <authorization>
                    <deny users="?" />
                </authorization>
            </system.web>
        </location>
    this is really irritating me since some of the page also use URL varaiables to pass some of the values which cannot be easily passed other ways but that is not the point. the problem here is I never get a return URL when the user is redirected to login.

    Thanks in advance.
    new to programming but getting ther

  2. #2
    Join Date
    Feb 2004
    Posts
    126
    Can you try and post your codebehind and show where you are doing the login in.
    Patrick
    ** By the way where are you placing your web.config file becos i can see you have login.aspx under the catalog folder?**

  3. #3
    Join Date
    Jun 2004
    Location
    Pakistan
    Posts
    292
    I finally figured out the problem. there were two login pages created by the previous developer for this project. He had redirected users to loginb.aspx page without passing any of the URL parameters. so it all works now, thanks.
    new to programming but getting ther

Similar Threads

  1. Form Authentication on HTML Pages
    By kashif_82 in forum ASP.NET
    Replies: 3
    Last Post: 06-10-2005, 01:52 PM
  2. Replies: 0
    Last Post: 06-10-2002, 10:23 PM
  3. Replies: 0
    Last Post: 04-11-2002, 07:48 PM
  4. Form Authentication
    By Zerocool in forum .NET
    Replies: 2
    Last Post: 10-24-2001, 05:15 AM
  5. Re: Form Authentication
    By Phil Weber in forum .NET
    Replies: 0
    Last Post: 10-23-2001, 09:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center