warning: Creating default object from empty value in /home/coredogs/public_html/modules/taxonomy/ on line 33.

Logging out


  • How to add a log out link on the admin menu.
  • The log out page gets rid of the session data.

Checking permissions


  • Every admin page checks the log in flag in the session. You can put the code in a separate file, and use the require statement to insert it.
  • Admin pages can check permission data in the session.
  • Use permission data from the session to change the admin interface. Don’t show users actions they’re not allowed to do.

Logging in

You will learn that:

  • The log in form gets a user name and password from the user.
  • It sends the data to a page that checks whether the user name and password is in the database table users.
  • If the user name and password are found, permission information is stored in the session.

PHP sessions

See more about:

Learn that:

  • Session memory is separate from any one page.
  • Pages can store data in session memory, and retrieve it.
  • Sessions can be destroyed by PHP pages. Sessions expire after a time of inactivity.

Restricting access

Learn how to restrict what different people can do on a site.


How to...