What are the methods to pass a variable using redirect() CI?

Doing a project on codeIgniter 3.1.11
There is a classic task to generate the email confirmation with the url to the post.
After the form inserted fields in the database, do a redirect to the confirmation page and send an email with the code. The question how to pass the code to compare it with the code received by the user? As an option flashcookies. But the question arises: is it safe to use cookies for such variable?
April 4th 20 at 13:29
0 answer

Find more questions by tags CodeIgniter