-
Book Overview & Buying
-
Table Of Contents
CouchDB and PHP Web Development Beginner's Guide
By :
Now that we've created users, we definitely need to find a way for them to log in to our system. Luckily, CouchDB and Sag will really do a lot of the heavy lifting for us in this area. In this section we will:
Set up a login form
Learn about sessions, cookies, and how CouchDB and Sag handle authentication for us
Add support for users to log out
Handle the UI differently for logged in and not logged in users
Let's create some login forms so that our users can log in to our website and use their newly created accounts.
We've gone through the process of creating pages, setting up routes, and creating forms a few times before. So, let's see if you can give it a shot by yourself this time. I won't leave you completely without help. I'll first tell you what you need to try to do, and then when you are finished, we'll review and make sure our code matches up.
Here's what you need to do:
1. Create...
Change the font size
Change margin width
Change background colour