I want to store data from a form which can be filled up many times in different session variables each time. I want to know how many variables i can set in sessions, i’ve been trying to do it and i can not set more than 2.
The thing is i have an orders model wich is rendered in a form and a customer can create several forms for that model.
But i don’t want to save them to the DB untill the order is accepted by the rider who’s going to deliver them.
So i would like a way to automate the process of creating sessions variables using a view according if a given variable already exists or not.
The user fills out the form the first time:
the user fills out the form again:
and so on…
So after he finishes he selects a rider to deliver all the given orders, once this rider accepts the orders, i save all the info to the db.
The more i think about it, maybe the best way could be to save each order to the db and i if the rider rejects it just delete it?
I would appreciate your help.