Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Using Cookies and JWTs for Secure Authentication!
You have completed Using Cookies and JWTs for Secure Authentication!
We need to tell the redirect to add our cookies to the response. Then we can access the cookies in two ways: we can just see if the cookie exists, or we can read the value of the cookie.
We can just see if the cookie exists
request()->cookies->has('cookie_name');
Or we can read the value of the cookie
request()->cookies->get('cookie_name');
Trouble creating a new account in this app
If you are having trouble creating a new account in the app demonstrated in this course, please make sure you've created the prerequisite course: Introduction to User Authentication in PHP.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up