#Advanced form keep data trough form and handler

11 messages · Page 1 of 1 (latest)

silver magnet
#

It is possible to keep data accros multitude handler. I know we can use context but i saw the use of context for small data so i wonder of we can use it to store a lot of data

#

I would like to do an advanced for when user submit the form 1 i send the form 2 but keep the data somewhere so at the end i've all the data

#

But i cannot find what technique without using a database if i use variables i do not know if i've five user that submit the form at the same time i do not want the value to get reassigned

turbid fjord
#

Sharing what is a lot of data, form, to submit, handler, and value to you might help us to understand your inquiry.

north forge
#

You would need an identifier to track state as http is stateless

#

You could generate an identified when the start of the journey is requested and is sent with the subsequent form submissions

#

On the backend, you maintain the state which can be queried from each handler as form submissions come in

silver magnet
#

@north forge im sorry but can you show a sample example you make me confused

turbid fjord
#

I'm totally confused

silver magnet
#

It show me what you mean and but the code use sync.Mutex i would like you to explain if you can