I have a Javascript array in page 1 and i need it in page 2.
I tried with JQuery post method but i couldn't make it work :
$.post( "{{path('result')}}", mydata );
How do i properly redirect the user from page 1 to page 2 with that array ?
Are cookies or sessions useful in this case ?
I'm using Symfony4 with Twig.
Thank you.