What is the best way to pass information (data) between pages?
Example:
I have 4 (four) pages dadospessoais.php
, endereco.php
, habilitacoes.php
and salvar.php
.
In the pages ( dadospessoais.php
, endereço.php
and habilitacoes.php
) will receive the user data through forms, on these pages I can move to the next one and I can go back, remembering that when I go back I can recover the data entered by the user.
The page salvar.php
will receive all the data from the 3 (three) pages and will save the information in a database.
I would like to know about the performance of the application and especially the SERVER, what is the best way to work with the passing of this information, remembering that the page will be accessed on average by 100 to 200 users / day, access. Currently I work with SESSION saving all user data in a SESSION and retrieving them the same way, but I do not know if this form is the most advisable, because I have noticed a slowness in the application and some failures when I try to save the data in the database .
I've seen comments that keeping many sessions open on the server could be a loss of performance, including overloading the server, I'm not sure how it works, but all the sessions that are opened content is saved depending on the server in the folder tmp. I'm wondering how many accesses to the site and every data of each user logged in (name, email, phone, address, enabled etc) being saved on the server, that's why I asked if there would be another way, p>