Loading
Current section: Redirect Cookie 5 exercises
Problem

Safely Redirect Users Using Value from Cookies

Transcript

00:00 Now, we're finally going to take that redirect value out of the cookie and then send that user to where they're supposed to go. In addition, in this step of the exercise, we're going to add that destroy redirect to cookie header, so that we can get the redirect to out of the user's cookie,

00:18 so they don't accidentally get redirected at some point later down the line. That is your objective in this exercise. There are quite a few lines of code that are changed, but lots of it is pretty straightforward. The probably most complicated thing that you're going to be doing is getting the redirect to forwarded onto

00:36 the onboarding if that's where they end up going. Other than that, I think you're ready to go. Have a good time.