PHP Classes
Icontem

Class: DB eSession


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lawrence Osiris  >  DB eSession  >  Download  >  Support forum Support forum (9)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: DB eSession Support forum
Base name: db_esession
Description: MySQL based session management
Related top rated classes: , , ,
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 7579 users
All time rank: 122
Week users: 9 users
Week rank: 817
 
  Author   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Trackback   Applications   Files Files  

Author

Picture of Lawrence Osiris
Name: Lawrence Osiris <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: http://www.code.dearneighbor.com/
Age: 46
All time rank: 201
Week rank: 744

Groups

Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes

Detailed description

This package is meant to manage session data stored in a MySQL database using PHP built-in session handling support.

General features:

- Stores session data in a MySQL table using session handler built-in PHP.
- Handle session expiration and cleanup.
- Supports the changes of session related configuration settings (including of PHP 5).
- Allows for normal or persistent MySQL database connections.
- Access to opened MySQL resource connection to use in your script.
- Can use a previously open database connection resource handle.
- Supports session identifiers with between 12 and 32 characters long.
- Custom or changeable database, table and column names.
- Has an option to create new session identifiers (you supply, class or PHP builds).
- Can initiate buffered output (using ob_start) within the class.
- A session_start() automatically initiated within the class.
- Can send 'Cache-Control:' header output within the class (fixes IE6 bug).
- Ability to retrieve a specific sessions expiration date and time.
- Retrieve current session life setting in seconds or minutes.
- Retrieve a numeric total of the number of active and inactive sessions in table.
- Facility to make assignment and retrieval of session variables easier.
- Has the ability to create manual URIs and links that include session name and ID.
- Has the ability to retrieve what the MySQL server version number is.
- An adequate form of encryption and decryption functions are included and used automatically when libmcrypt is not installed.

Security features:

- Standard user inactivity time-out handled automatically.
- Absolute user logoff time-out capability (session will be terminated no matter what after a number of designated minutes and seconds have elapsed).
- Ability to lock and unlock a particular session or all sessions. When a session is locked, it is immediately not available for use.
- User to session verification using IP address and browser information.
- Security level (code) clearance for each session or web page.
- Encrypt and decrypt as desired each session field.
- Encrypt and decrypt an extra session field to compare against original (to detect against possible tampering).
- Encrypt and decrypt the whole session data in the table (essentially obscuring session variable names in table). Can be used in combination with per session field encryption, resulting in double encryption security.
- A new encryption initialization vector is created every time values change.
- Ability to manually delete a particular session or all sessions.
- The users IP address and web browser is recorded as part of the session for tracing information.

Other features:

- Support for multiple language error and warning messages.
- Support of a default language as well as current active language settings.
- Basic or detailed (with SQL syntax) error and warning reporting.
- Buffered error and warning messages.
- Option for class to stop execution or not upon encountering an error and warning. Class can display errors and warnings automatically or control in your script.
- Can select font color and size separately for error and warning messages.
- The code has lots of comments and formatted within 82 characters wide.
- Full documentation (only provided in English) is included.
- Code use examples provided, including a basic authentication (login/logout) process.
- SQL text file provided for creating the MySQL session table.

Freshmeat project

Project record: db_esession
Popularity score: 68.23
Vitality score: 1.42

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (86.8%)
Good (84.9%)
Good (80.9%)
Sufficient (78.3%)
-
-
Sufficient (67.8%)
256
Month:
Not yet rated by the users

Trackback links

Link Description
Blog Articles Thank you for creating the useful DB eSession PHP class...
To Lawrence Osiris Thank you for creating the useful DB eSession PHP class which will help me manage session data...

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file class.DB_eSession.php Class The main class file
Plain text file config.DB_eSession.php Conf. Configuration file used to pass parameters to class
Plain text file emplogin.php Example Example page used to login employees
Plain text file employees.php Example Example page of employees restricted area
Plain text file errors.DB_eSession.php Class Error and Warning definitions used by class
Plain text file eSessions_table.sql Data Text file that contains the SQL to create the MySQL sessions table
Plain text file examples.php Example Examples of how to invoke various member functions
Plain text file guess.php Example A number guessing game showing use of class
Plain text file index.php Example Example home page of an authentication process
HTML file license.html Lic. The GNU GPL in HTML
Plain text file login.php Example Example page used to login members
Plain text file logout.php Example Example page of logging out members and employees
HTML file manual.html Doc. DB_eSession class manual in HTML
Plain text file members.php Example Example page of members restricted area
Plain text file monitor.php Example Session table monitoring and maintenance page
HTML file readme.html Doc. Brief setup instruction steps
Download all files: db_esession.tar.gz db_esession.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products