Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

swapna's avatar

i want to set a ajax post a variable and save it in session just so that you can then redirect to a page and use that variable?

any on ecan help

0 likes
1 reply
jlrdw's avatar

If using ajax why not use javascript to redirect, otherwise just build the redirect url and store in session in the controller.

Please or to participate in this conversation.