Z
Z
Zenko2020-01-23 14:43:00
CodeIgniter
Zenko, 2020-01-23 14:43:00

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

I'm doing a project on codeIgniter 3.1.11
There is a classic task to generate a confirmation letter from the url to the mail.
After the form inserts the fields in the database, I redirect to the confirmation page and send an email with the code. The question is how to pass a variable to the code to compare it with the code that the user received? Like flashcookies. But the question arises: is it safe to use cookies for such variables?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question