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
We covered three different ways to persist data in a browser. Forms, which included just using the query string, Sessions and Cookies. You can also combine these methods with a database or other file system for server based persistence.
Other Course
Integrating Databases with PHP
Project Enhancements
- Implement Code Challenges
- Check session for all 5 words, redirect to missing word
- Don't allow blank words
- If not starting over, show the last word they entered
- Set up a prompt to ask the user if they really want to delete the story.
- Write additional stories that use the same 5 words we utilized for the original story.
- Create a bank of different stories and save the entire story instead of just the user entered words.
- Use the language tool api to make sure the word conforms to the part of speech requested http://wiki.languagetool.org/public-http-api
Great job being persistent and
finishing this course.
0:00
We covered three different ways
to persist data in a browser.
0:04
Forms, which include just using
the query string, sessions and cookies.
0:07
You can also combine these methods with
a database, or other file system, for
0:12
server based persistence.
0:17
Although I have shown you
some of the limitations for
0:19
each of these methods,
we haven't talked about security.
0:22
For this story project,
0:26
I'm not really worried about
protecting the data that's being used.
0:28
But if you want to work with sensitive
data, such as user name and password,
0:31
you'll need to consider the security
of the persistence methods you choose.
0:35
But have no fear, we have a user
authentication course when you're ready.
0:40
I have also included additional resources
in the notes associated with this video.
0:45
Before you continue to the next course,
0:50
take some time to play around with what
you learned about data persistence.
0:52
You can write a completely
different application or
0:57
expand upon the game we
created in this course.
0:59
If you'd like some suggestions, check out
the notes associated with this video.
1:02
Continue to be persistent yourself,
to have fun and keep learning.
1:07
You need to sign up for Treehouse in order to download course files.
Sign up