Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Registration System 6:08
- Securing Passwords 5:38
- Login Systems 4:53
- Building a JWT 4:52
- Authentication Review 5 questions
- Working with Cookies 4:24
- Require Authentication 5:22
- Logging Out 3:13
- Flash Messages 5:29
- Cookies and Flash Messages 3 questions
- User Profile 9:30
- Reset Password 4:42
- Password Hashing 1 objective

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
As a little bonus, let’s add some nice messages in the session flashes to give feedback to the user.
Styles for New Function display_success()
Name of bag: success
Name of class: alert-success
$messages = $session->getFlashBag()->get('success');
$response = '<div class="alert alert-success alert-dismissable">';
Success and Failure Flash Messages
- Adding Book
- Editing Book
- Logging In
- Logging Out
- Registration
Display Flash Messages on Pages
- add.php
- books.php
- edit.php
- index.php
- login.php
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
devope devope
11,490 Points0 Answers
-
Brian Gwaltney
1,207 Points1 Answer
View all discussions for this video
Related 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