negative(-11) Documentation

Documentation Home

Session Package

The session package provides database session functionality in place of the standard file-based sessions that PHP provides. Using the database to store the sessions for your site can provide a lot of benefits: security, scalability, universal logins across many sites, and best-of-all: increased storage capacity.

Installation & Configuration

Installation and configuration of the session package is easy. Simply create the database table supplied in the install/table.sql file, add the session package to the packages array in index.php, and ensure that database connectivity is properly configured in the mysqli pacakge. You may have to configure some of the values in config/session.php to suit your directory and server needs for cookie management.

Once these steps have been followed, load your website, and check the sessions table. You should start to see session data appearing there.


© Copyright 2010 negative11.com