Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Design and Development!
You have completed Design and Development!
Preview
In this video, we setup the user session, which is the model that handles logging in and out. Download the Beginning of the Project or the Completed Project
This video doesn't have any notes.
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
and password confirmation and our properly crypted password
0:00
will be stored in the database.
0:03
So, we can pretty much register and edit all the users.
0:05
So, the next step is to actually log in.
0:09
In order to log in, we'll be using a session, and a session is
0:12
a model that sort of handles a particular session.
0:16
So, when we log in, we'll be creating a new session for a user,
0:19
and when we log out, we'll be deleting a session.
0:23
So, it works just like our other models where we'll be creating and deleting things.
0:25
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