Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

Redirect to another page with data

$
0
0

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.


Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>