Retrieving data from POST depends on how the web browser sends the data. When a web browser receives a redirect, it does not retransmit this data. One solution would be to URL-encode the data you want to save and use it with GET. In the worst case scenario, you can always add the data you want to save to the session and transfer it that way.
source share