Page 1 of 1

several step process. do it reliable,secure.

Posted: Mon Oct 09, 2006 9:41 am
by jmut
Hi,
here is the scenario.
I have full control over the system I develop on. it is LAMP development.

The question is: what is the reliable and right way to go with several step process.
Let's say there is ordering process or whatever that takes several steps to complete.

What comes to my mind first is store all necessary data from one step in a SESSION and provide it for the second step.
With a flag index in $_SESSION that shows the step that is valid and finished...so I know till where I am...and what step to show next.

Are there any pitfalls to this approach...is it possible with form submission or some other way to change data from step 1 and acturelly be processed on step 5. I assume not as the data will be stored in $_SESSION..

Would be great even if someone points me to how to search for this kind of problem in google e.g.

Posted: Mon Oct 09, 2006 9:44 am
by miro_igov
That is good and safe way to do a process in multiple steps, i have made some survey application that way. The only problem here is that if an user delays to complete a step in the specified session timeout it is possible to loose the previous steps.