several step process. do it reliable,secure.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

several step process. do it reliable,secure.

Post 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.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
Post Reply