ReturnURL now showing

Last post 09-06-2006 11:02 PM by lostlander. 2 replies.

Sort Posts:

  • ReturnURL now showing

    09-06-2006, 10:41 AM
    • Member
      289 point Member
    • shams_pabani
    • Member since 05-20-2005, 1:16 PM
    • London
    • Posts 158

    Hi,

    I am trying to password protect a folder and am using forms authentication. If I type in the complete url of some folder within that folder, the application correctly throws the user back to the login page, however the ReturnURL variable is missing from the querystring!

    Here's what I am using in the web.config.

    <authentication mode="Forms">

    <forms name="_Cookie" loginUrl="myaccount/login.aspx" timeout="30"></forms>

    </authentication >

    --------------------------

    <location path="myaccount">

    <system.web>

    <authorization>

    <deny users ="?"/>

    </authorization>

    </system.web>

    </location>

    Am I missing anything? All help will be appreciated.

    Thanks!

  • Re: ReturnURL now showing

    09-06-2006, 9:36 PM
    Answer
    • Member
      95 point Member
    • nasha
    • Member since 09-03-2006, 12:21 AM
    • Bombay
    • Posts 19

    try and access one of the pages in the folder and then check do u get ReturnURL.

     regards,

    Nasha,MVP
  • Re: ReturnURL now showing

    09-06-2006, 11:02 PM
    Answer
    • Contributor
      3,041 point Contributor
    • lostlander
    • Member since 05-22-2006, 7:55 AM
    • Posts 607

    Make sure you have used QueryString corrrectly.

    Can you see the ReturnUrl in the address bar?!  Actually, when a redirection happens, you should see it in the bar.

    Here is my code:

    In Login.aspx--->Page_Load:
    Label1.Text = Request.QueryString["ReturnUrl"];

    Regards!^_^
    Lostlander.

Page 1 of 1 (3 items)