Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array in a session variable? 2

Status
Not open for further replies.

mmaz

Programmer
Nov 22, 2000
347
Hi,

I have to write an application with 6 forms on 6 different pages. The user fills out the first form, then clicks on next and fills out the second form, clicks next and so on.

When all the forms are filled out, the user must have the option to go back to any of these forms and change any of the field values. Therefore, I need a way to save this information and pass it from page to page. What would be the best way to achieve this?

I had thought of an array in a session variable, but I'm not sure that would be the best option.

Any suggestions?

Thanks,

Marie
 
I would certainly go with sessions. Arrays in session variables shouldn't be a problem at all.

//Daniel
 
I agree with Daniel.
Sessions are the most efficient way to handle tasks like the one mentioned. All the data is kept server side and only the sessionID is transferred with a cookie or (less desirable) a GET parameter.

Sessions serialize data, so there is nothing in the way of using arrays.
 
Thanks for the feedback!

Marie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top