Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8511793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:06:19+00:00 2026-06-11T04:06:19+00:00

I have set the defaultUrl as <forms loginUrl=Home/Login.aspx defaultUrl=Items/Default.aspx name=MySite timeout=120 slidingExpiration=true requireSSL=false/> problem

  • 0

I have set the defaultUrl as

<forms loginUrl="Home/Login.aspx" defaultUrl="Items/Default.aspx" name="MySite" timeout="120" slidingExpiration="true" requireSSL="false"/>

problem is when i first time login it takes me to the defualtUrl page but once i click on the logout button it logs me out, if i log back in again it takes me to Home/Default.aspx instead. i am using FormAuthentication.
I have tried following settings as well

<system.webServer>
    <defaultDocument enabled="true">
      <files>
        <add value="Items/Default.aspx"/>
      </files>
    </defaultDocument>
  </system.webServer>

I dont know the reason why its happening. Any help will be appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:06:21+00:00Added an answer on June 11, 2026 at 4:06 am

    Does Items/Default.aspx require the user to be authenticated in order to get access to it? If so, it may be the cause of such behaviour.

    You can allow anonymous user access to Items/Default.aspx by doing this in your web.config:

    <location path="Items/Default.aspx">
    <system.web>
        <authorization>
            <allow users="*"/>
        </authorization>
    </system.web>
    </location>
    

    Update: This may be a workaround for your issue whilst you find another alternative:

    In the Page_Load of Home/Default.aspx you can check if the user is actually authenticated and redirect them accordingly:

    if (!this.User.Identity.IsAuthenticated)
    {
        Response.Redirect("Items/Default.aspx");
    }
    

    I hope this help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set default property page so in the property url it shows /lima-investments/property-name.
I have set the eclipse java formatter to wrap lines that exceed 120 characters
So I have a login page where I set my own cookie and FormsAuthenticationTicket.
I'm trying to set up forms authentication across multiple servers and subdomains. I have
I have an asp.net 4.0 application that is using forms authentication set to a
Just starting out in asp.net. Have just created a login.aspx page in my site
I have set a background on the data-role=page element like so <div data-role=page style=background:
I have set up Eclipse Indigo to do line debugging with CFEclipse over port
I have set up upload_max_filesize and post_max_size to 32Mb in php.ini. I am using
I have set of flat files (114 files) each file is named with database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.