0

Suppose I have an ASP.NET registration wizard. The collected information for each step is temporary stored in a database table, when clicking “Next”. Now suppose the user closed the browser window, or computer was unexpectedly shut down. So in that the application should delete all the temporary registration information. How could it be done?

Additional information: I cannot use cannot use a Session object because the application is served from a webfarm.

I thought already about using a stored procedure for clean up the table. But want to find out other possibilities.

2 Answers 2

2

Simply do not store into db data that is incomplete. Use a session as a temporary storage instead. It gives you not only a better performance (you avoid db hits), but it avoids problems like yours altogether. Store to database only after all necessary info has been inputted.

Sign up to request clarification or add additional context in comments.

Comments

0

In such scenario, you can assign a temporary registration id for each session/attempt. If the window is closed, next attempt will be a new one and the application should run a clean up job every night or so to delete incomplete attempts.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.