• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

What is the best technique to add new users with asp.net?

I have a webpage that needs to register new users. I need to collect a lot of information. Currently, I have 4 pages that the user needs to complete. The problem I have is that some users take a long time to complete a page thus their session gets dumped and the information they entered is lost. What is the best technique to do this? thanks
0
mattphung
Asked:
mattphung
  • 3
  • 2
1 Solution
 
Saqib KhanSenior DeveloperCommented:
Just increase the Session Timeout Setting to some greater Value

I believe its

Session.Timeout = 9000

means 9 Seconds. You can slo change that setting within IIS. You might need to google Timeout property to confirm.
0
 
SammyCommented:
you can use the web.config session state to increase the timeout
this will apply to all pages

<configuration>
   <system.web>
      <sessionState mode="InProc"
                    cookieless="true"
                    timeout="20"/> <!--20 Minutes Not seconds when set at the config level-->
      </sessionState>
   </system.web>
</configuration>

Open in new window

0
 
mattphungAuthor Commented:
Is there another way besides increasing the timeout value?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
SammyCommented:
Nope! you are using sessions and they expire, you can store the data in cookies and check their values when the user gets to the next page
another option is to use the Context object
Context.Items.Add("Context_Identifier","ContextValue");
the other limitation here is that you will have to use Server.Transfer("Otherpage.aspx",true); instead of Response.Redirect("Oherpage.aspx");
to read the Context values you can do like this
string s = Context.Items["Context_Identifier"].ToString();

Hope this helps

0
 
mattphungAuthor Commented:
Can I use Context to transfer datagrid to the next page?
0
 
mattphungAuthor Commented:
Sorry.... I forgot to say thank you thus far for all your help. I really appreciate it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now