Book Image

CodeIgniter for Rapid PHP Application Development

By : David Upton
Book Image

CodeIgniter for Rapid PHP Application Development

By: David Upton

Overview of this book

<p>CodeIgniter (CI) is a powerful open-source PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. CodeIgniter is an MVC framework, similar in some ways to the Rails framework for Ruby, and is designed to enable, not overwhelm.<br /><br />This book explains how to work with CodeIgniter in a clear logical way. It is not a detailed guide to the syntax of CodeIgniter, but makes an ideal complement to the existing online CodeIgniter user guide, helping you grasp the bigger picture and bringing together many ideas to get your application development started as smoothly as possible.</p>
Table of Contents (21 chapters)
CodeIgniter for Rapid PHP Application Development
Credits
About the Author
About the Reviewers
Preface
Index

Security


Notice that the session class automatically stores information about the IP address and user agent of the user making a page request. You can use these to give additional security.

There are two settings you can change in your config file for additional security:

  • sess_match_ip: If you set this to true, CI will attempt to match the user's IP address when it reads the session data. This is to prevent users from 'hijacking' a log-in. However, some servers (both ISPs and large corporate servers) may issue requests by the same end user over different IP addresses. If you set this value to true, you may exclude them unintentionally.

  • sess_match_useragent: If you set this to true, CI will try to match the User Agent when reading the session data. This means that someone who tried to hijack a session would have to ensure that the 'user agent' setting returned by his or her system matched that of the genuine user. It makes hijacking a little more difficult.

CI also has a user_agent class, which...