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

  • SEARCH
  • Home
  • 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 719631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:39:55+00:00 2026-05-14T05:39:55+00:00

I am wondering how to do the following… I have a registration system. When

  • 0

I am wondering how to do the following…

I have a registration system. When the user successfully registers, he is
then led down a series of data gathering pages (for his profile) and then,
finally, ends on his profile’s home page where he can start to use the site.

All this happens without ever logging into the system so, he is unauthenticated
and unconfirmed.

My question is, how does this happen? How can I allow my user to be unauthenticated (and unconfirmed, but this I understand) and use all aspects of the Web site?

The way I have things set up right now, my code should be doing this:

case CreateProfileStatus.Success:
//FormsAuthentication.SetAuthCookie(userName, false);
Response.Redirect("NextPage.aspx", false);
break;

but, I am being redirected to the login page after registration which is not the result I want. This is what the relevant nodes in my web.config look like:

    <authentication mode="Forms">
      <forms name=".AuthCookie" loginUrl="default.aspx" protection="All"/>
    </authentication>
    <authorization>
      <deny users="?"/>
      <allow roles="Administrators" />
    </authorization>
    <anonymousIdentification enabled="true" 
                             cookieName=".ASPXANONYMOUS"
                             cookieTimeout="100000" cookiePath="/" 
                             cookieRequireSSL="false"
                             cookieSlidingExpiration="true" 
                             cookieProtection="Encryption"
                             cookieless="UseCookies" 
                             domain="" />

When the user logs out after the registration and initial interaction with the site he will be required to log in upon return. At this point he must be authenticated but does not need to be confirmed for a period of time. Eventually, he will be reminded.

So, how is this done? Thanks in advance.

  • 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-05-14T05:39:55+00:00Added an answer on May 14, 2026 at 5:39 am

    Right now, the deny users=”?” is denying access to anonymous users to ALL parts of the site. Forms authentication isn’t all or nothing. You can set it up to apply only to a portion of your site. Since you’ve applied it to everywhere, any time you have an anonymous user who hasn’t been given an auth cookie they will be redirected to “default.aspx” which is where they are required to log in.

    If I understand correctly, you need to do the following…Set the registration portion of the site to be open to anonymous users (you do this in the authorization section of the web.config). This will prevent redirecting to “default.aspx” during the registration process. Once they are finished registering, you can either send them to “default.aspx” to log in, or recognize that they are now registered and log in for them (by using the FormsAuthentication.SetAuthCookie method).

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

Sidebar

Related Questions

I am wondering is the following behavior correct. I have a label element linked
I was wondering if the following will have an effect as I intend it.
I was wondering the following, if I have these two Models: Author Book And
Was wondering if the following is possible: Currently, I have a subset of nodes
I was wondering if the following error, System.Web.HttpException: Unable to serialize the session state.
I am developing an MVC3 application and have been wondering about the following. Should
So, I was wondering about the following: I have some main content div and
I was wondering about the following situation: in iOS: I have viewA which goes
I'm wondering if the following DB schema would have repercussions later. Let's say I'm
I am wondering if the following is possible. Say I have the following table:

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.