O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

User authentication

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

Setting up for the login form

Let's create some login forms so that our users can log in to our website and use their newly created accounts.

Have a go hero — setting up the routes and forms for login

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required