Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
This course focused on three specific skills, cookies, tokens and most important, refactoring. Cookies are used to store information on a user's device, while tokens are used to represent something else such as user information and what they can access. As you continue to learn new programming techniques, you'll continue to use refactoring to keep your code updated and secure.
Additional Resources
- Review session based user authentication, in our Introduction to User Authentication course.
- Beginning Security Track
-
Stormpath
-
Encode or Decode JWTs
-
JSON Web Token Inspector
- Cookies vs Session
- Cross Site Scripting (XSS)
-
Cross Site Request Forgery (CSRF)
Suggested Enhancements
- Add or Change the messaging.
- Add additional authorization checks.
- Add more information to your books, such as category, isbn or cover image.
- Allow users to leave comments on books.
- Add an additional role that only allows users to vote, and maybe add comments, but not add books.
- Change the voting system to be 5 stars instead of up/down voting.
- Allow administrators to create users.
- Share your book voting site with friends and family and allow them to give you additional feature suggestions.
This course focused on three specific
skills, cookies, tokens, and
0:01
most importantly, refactoring.
0:06
Cookies are used to store information on
a user's device, while tokens are used
0:08
to represent something else such as user
information and what they can access.
0:13
As you continue to learn
new programming techniques,
0:19
you'll continue to use refactoring to
keep your code updated and secure.
0:22
Speaking of security, there's still much
to learn when it comes to this topic and
0:27
we're here to help you on that journey.
0:32
Treehouse has an entire track devoted to
security, covering personal security,
0:35
data security, and application security.
0:40
There's also a course covering the most
common security vulnerabilities
0:43
found in applications and
how you can prevent files.
0:46
As you go deeper into
your programming journey,
0:51
at times you'll feel like you can't
possibly learn it all and you're right.
0:52
But nobody knows it all,
0:58
which is why finding a network of
people is invaluable as a developer.
1:00
Look for
your local PHP user group at php.ug.
1:04
And also check out other web technology
groups at places like meetup.com.
1:08
Each new skill you develop and
1:14
each connection you make provide the tools
you need to become a better programmer.
1:16
By putting those skills into practice,
you build more useful applications
1:21
that are easier to maintain and
more secure for everyone.
1:26
Keep up the hard work,
I know that you're up for the challenge.
1:30
You need to sign up for Treehouse in order to download course files.
Sign up